Commit 99812f34 authored by 赵啸非's avatar 赵啸非

修改配置文件1

parent 9d32a6bb
......@@ -51,7 +51,7 @@ export default {
let token = this.$route.query.token;
let siteid = this.$route.query.siteid;
if (token) {
local.setLocal("writeToken", token);
local.setLocal("sampleToken", token);
// let res = await getSiteTree({});
// let { siteTree } = res.data.data;
// let siteList = this.extractTree(siteTree, "children").filter(
......@@ -63,7 +63,7 @@ export default {
// siteid: arr[0].id,
// };
// local.setLocal("siteInfo", siteInfo);
local.setLocal("writeSiteId", siteid);
local.setLocal("sampleSiteId", siteid);
this.$router.push("/basicsset");
} else {
this.$message.warning("跳转失败,请重新登录");
......
......@@ -162,7 +162,7 @@ export default {
}
});
};
const siteid = local.getLocal("writeSiteId");
const siteid = local.getLocal("sampleSiteId");
treeFn(siteTree);
const siteObj = arr.find((v) => v.id == siteid);
this.siteName = siteObj ? siteObj.label : "请选择站点";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment