Commit 9d241f58 authored by liwei's avatar liwei

修改了Ai工作站的一键启停下拉框无限增加bug

parent ca4dc500
......@@ -112,7 +112,7 @@ const saveActiveStep = ref(-1);
const saveStopStep = ref(-1);
const activeCloseStep = ref(-1);
const clientHeight = ref("500px");
const options = reactive([]);
let options = reactive([]);
const transferId = ref(null);
const stationId = ref(null);
const limit = ref(0);
......@@ -388,7 +388,6 @@ function getSupplys() {
});
options.push({ children: c, label: center.serviceCenterName });
})
} else {
element.supplyList.forEach(element => {
let chi = [];
......@@ -1162,6 +1161,8 @@ watch(
async () => {
if (route.path === '/Remote/OnekeyStartStop') {
await store.dispatch("getOrg");
//离开当前页面,将options里的数据清空,否则每次回到这个页面都会往里面继续添加一次
options = []
await getSupplys();
scheduledTasks()
} else {
......
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