diff --git a/src/store/scene.ts b/src/store/scene.ts
index b58ab447..efc423a9 100644
--- a/src/store/scene.ts
+++ b/src/store/scene.ts
@@ -109,7 +109,7 @@ export const useSceneStore = defineStore('scene', () => {
...result,
trigger: result.trigger || {},
branches: cloneDeep(assignmentKey(branches)),
- options: result.options ? {...defaultOptions, ...result.options } : defaultOptions,
+ options: result.options ? {...cloneDeep(defaultOptions), ...result.options } : cloneDeep(defaultOptions),
}
}
}
diff --git a/src/utils/request.ts b/src/utils/request.ts
index 0cf20b9a..5c260845 100644
--- a/src/utils/request.ts
+++ b/src/utils/request.ts
@@ -158,10 +158,7 @@ const errorHandler = (error: any) => {
description: '用户未登录'
})
setTimeout(() => {
- debugger
- router.push({
- path: LoginPath
- })
+ location.href = `/#${LoginPath}`
}, 0)
}
} else if (error.response === undefined) {
@@ -180,10 +177,13 @@ request.interceptors.request.use(config => {
const token = LocalStore.get(TOKEN_KEY)
// const token = store.$state.tokenAlias
if (!token) {
+ // setTimeout(() => {
+ // router.replace({
+ // path: LoginPath
+ // })
+ // }, 0)
setTimeout(() => {
- router.replace({
- path: LoginPath
- })
+ location.href = `/#${LoginPath}`
}, 0)
return config
}
diff --git a/src/views/iot-card/CardManagement/index.vue b/src/views/iot-card/CardManagement/index.vue
index 8762639a..a6117f7e 100644
--- a/src/views/iot-card/CardManagement/index.vue
+++ b/src/views/iot-card/CardManagement/index.vue
@@ -572,7 +572,7 @@ const columns = [
search: {
type: 'select',
options: [
- { label: '正常', value: 'using' },
+ { label: '激活', value: 'using' },
{ label: '未激活', value: 'toBeActivated' },
{ label: '停机', value: 'deactivate' },
{ label: '其它', value: 'using,toBeActivated,deactivate' },
From 1a91967f02316edb74e4e338d0c086bb24dc94b7 Mon Sep 17 00:00:00 2001
From: xieyonghong <18010623010@163.com>
Date: Thu, 23 Mar 2023 15:45:30 +0800
Subject: [PATCH 3/3] =?UTF-8?q?update:=20=E6=9B=B4=E6=96=B0=E7=BB=84?=
=?UTF-8?q?=E4=BB=B6=E5=BA=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
yarn.lock | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/yarn.lock b/yarn.lock
index 90d450e5..0e53dbfb 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3700,8 +3700,8 @@ jetlinks-store@^0.0.3:
jetlinks-ui-components@^1.0.5:
version "1.0.5"
- resolved "http://47.108.170.157:9013/jetlinks-ui-components/-/jetlinks-ui-components-1.0.5.tgz#77bd58156212d793fdebe41fc8864eeed5db7182"
- integrity sha512-VXuCMJlMV/bbmBhPtBzY/BUBIvGebQbguLPE06xps79i5Pjq46+HBW8VPsJ9MwvyMhYkhzPlQJu9Ft7v5uo+yA==
+ resolved "http://47.108.170.157:9013/jetlinks-ui-components/-/jetlinks-ui-components-1.0.5.tgz#f2e62df4054e513df39e3355592d95e356438328"
+ integrity sha512-vfQ8g8nEJueDkHCVcg9WeWDDjnPklyigbobB1CQArfHLd5O4x6vLFWvF69k0yqytCvIOXB13CzhLtMnv68pC5w==
dependencies:
"@vueuse/core" "^9.12.0"
ant-design-vue "^3.2.15"