fix: bug#10787、10786

This commit is contained in:
xieyonghong 2023-03-23 15:44:31 +08:00
parent 8c97f0e441
commit cb91ec58ac
4 changed files with 10 additions and 10 deletions

View File

@ -15,7 +15,7 @@
>
{{ slotProps.route.breadcrumbName }}
</a>
<span v-else style='cursor: pointer' >{{ slotProps.route.breadcrumbName }}</span>
<span v-else style='cursor: default' >{{ slotProps.route.breadcrumbName }}</span>
</template>
<template #rightContentRender>
<div class="right-content">

View File

@ -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),
}
}
}

View File

@ -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
}

View File

@ -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' },