fix(工作台): 修复系统成员进入工作台报错bug
This commit is contained in:
parent
6e9d34dfef
commit
0630dc92e4
|
@ -245,7 +245,7 @@ const useUserStore = defineStore('user', {
|
|||
const appStore = useAppStore();
|
||||
const isLogin = await this.isLogin(forceSet);
|
||||
const routeName = router.currentRoute.value.name as string;
|
||||
if (isLogin && appStore.currentProjectId !== 'no_such_project') {
|
||||
if (isLogin && appStore.currentProjectId && appStore.currentProjectId !== 'no_such_project') {
|
||||
// 当前为登陆状态,且已经选择了项目,初始化当前项目配置
|
||||
try {
|
||||
const HasProjectPermission = await getUserHasProjectPermission(appStore.currentProjectId);
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div v-else class="not-setting-data">
|
||||
{{ props.noPermissionText || t('workbench.homePage.noDataTemporarily') }}
|
||||
{{ t(props.noPermissionText || 'workbench.homePage.noDataTemporarily') }}
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
|
@ -148,7 +148,7 @@
|
|||
title: 'testPlan.testPlanIndex.ID',
|
||||
slotName: 'num',
|
||||
dataIndex: 'num',
|
||||
width: 100,
|
||||
width: 150,
|
||||
showInTable: true,
|
||||
showDrag: false,
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue