fix(工作台): 修复系统成员进入工作台报错bug

This commit is contained in:
xinxin.wu 2024-11-20 10:53:13 +08:00 committed by 刘瑞斌
parent 6e9d34dfef
commit 0630dc92e4
3 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

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

View File

@ -148,7 +148,7 @@
title: 'testPlan.testPlanIndex.ID',
slotName: 'num',
dataIndex: 'num',
width: 100,
width: 150,
showInTable: true,
showDrag: false,
},