|
|
@@ -231,9 +231,9 @@ function getLevelClass(level: string) {
|
|
|
}
|
|
|
}
|
|
|
// 刷新数据
|
|
|
-async function refresh() {
|
|
|
- await nextTick();
|
|
|
- fetchConfigs('').then(() => {
|
|
|
+function refresh() {
|
|
|
+ fetchConfigs('sys_Leather').then(() => {
|
|
|
+ console.log(pageType.value, '========');
|
|
|
if (pageType.value == 'fire_risk_warn') {
|
|
|
configs.value = testBeltNew;
|
|
|
const params = {
|
|
|
@@ -275,7 +275,6 @@ async function refresh() {
|
|
|
} else {
|
|
|
configs.value = testBeltNew;
|
|
|
}
|
|
|
- updateEnhancedConfigs(configs.value);
|
|
|
});
|
|
|
}
|
|
|
|
|
|
@@ -289,7 +288,6 @@ function initInterval() {
|
|
|
async function changePage(pageTypeStr: string) {
|
|
|
const finalPageType = pageTypeStr || (route.query.pageType as string) || '';
|
|
|
pageType.value = finalPageType;
|
|
|
- console.log(pageType.value, '-------');
|
|
|
await refresh();
|
|
|
}
|
|
|
|