diff --git a/src/components/GatewayConfiguration.vue b/src/components/GatewayConfiguration.vue
index 0c1b5ad..578ba30 100644
--- a/src/components/GatewayConfiguration.vue
+++ b/src/components/GatewayConfiguration.vue
@@ -193,16 +193,11 @@ export default {
};
},
created() {
- let that = this;
- window.getParameter = that.getParameter;
+ this.user_id = window.location.href.split("?")[1];
this.GetUserAnswer();
// this.wgpz = JSON.parse(localStorage.getItem("wgpz")) || [];
},
methods: {
- getParameter(data) {
- console.log(data);
- this.user_id = data;
- },
handleSelectionChange() {},
//新建网关保存
saveinfo() {
@@ -281,7 +276,7 @@ export default {
});
this.flag = true;
} else {
- this.$message.error(data.message);
+ this.$message.error("保存失败");
return;
}
},
diff --git a/src/components/GatewayMaintenance.vue b/src/components/GatewayMaintenance.vue
index 8a44a3a..347f204 100644
--- a/src/components/GatewayMaintenance.vue
+++ b/src/components/GatewayMaintenance.vue
@@ -253,17 +253,10 @@ export default {
};
},
created() {
- // let that = this;
- // window.getParameter = that.getParameter;
- this.user_id = this.$route.fullPath.split("?")[1];
+ this.user_id = window.location.href.split("?")[1];
this.GetUserAnswer();
- // this.tableData = JSON.parse(localStorage.getItem("wgwh")) || [];
},
methods: {
- // getParameter(data) {
- // console.log(data);
- // this.user_id = data;
- // },
//读缓存
async GetUserAnswer() {
let { data } = await GetUserAnswer({
diff --git a/src/components/IpConfiguration.vue b/src/components/IpConfiguration.vue
index 21981a3..f75884e 100644
--- a/src/components/IpConfiguration.vue
+++ b/src/components/IpConfiguration.vue
@@ -167,7 +167,6 @@