+
@@ -194,7 +195,7 @@ export default {
data() {
const validateInput = (rule, value, callback) => {
if (!this.checkSpecialKey(value)) {
- callback(new Error('不能含有空格或 [ ]`~!#$^&*=|"{}\':;/?'))
+ callback(new Error('不能含有空格或 [ ]`~!#$^&*=|"{}\':;?'))
} else {
callback()
}
@@ -295,7 +296,7 @@ export default {
this.inputValue = ''
},
checkSpecialKey(str) {
- const specialKey = '[]`~!#$^&*=|{}\'":;/? '
+ const specialKey = '[]`~!#$^&*=|{}\'":;? '
for (let i = 0; i < str.length; i++) {
if (specialKey.indexOf(str.substr(i, 1)) !== -1) {
return false
diff --git a/vue-consul/src/views/consul/services.vue b/vue-consul/src/views/consul/services.vue
index e24cdda..f8b8d04 100644
--- a/vue-consul/src/views/consul/services.vue
+++ b/vue-consul/src/views/consul/services.vue
@@ -1,5 +1,6 @@