fix(测试计划): 修复测试计划报告无痕浏览器打开重定向登录页面
This commit is contained in:
parent
e12eb97757
commit
3cf65b590b
|
@ -81,7 +81,10 @@
|
|||
}
|
||||
const { height } = useWindowSize();
|
||||
appStore.innerHeight = height.value;
|
||||
userStore.initLocalConfig(); // 获取本地执行配置
|
||||
if (userStore.id) {
|
||||
userStore.initLocalConfig(); // 获取本地执行配置
|
||||
}
|
||||
|
||||
// @desc: TODO待优化主要是为了拿到初始化配置的项目模块方便接下来过滤菜单权限 解决刷新菜单空白问题
|
||||
appStore.getProjectInfos();
|
||||
});
|
||||
|
|
|
@ -302,6 +302,9 @@
|
|||
onBeforeMount(async () => {
|
||||
try {
|
||||
loading.value = true;
|
||||
if (!userStore.id) {
|
||||
return;
|
||||
}
|
||||
const res = await getLocalConfig();
|
||||
if (Array.isArray(res)) {
|
||||
res.forEach((config) => {
|
||||
|
|
|
@ -114,7 +114,9 @@ const useUserStore = defineStore('user', {
|
|||
appStore.setCurrentOrgId(res.lastOrganizationId || '');
|
||||
appStore.setCurrentProjectId(res.lastProjectId || '');
|
||||
this.setInfo(res);
|
||||
this.initLocalConfig(); // 获取本地执行配置
|
||||
if (res) {
|
||||
this.initLocalConfig(); // 获取本地执行配置
|
||||
}
|
||||
} catch (err) {
|
||||
clearToken();
|
||||
throw err;
|
||||
|
@ -129,7 +131,9 @@ const useUserStore = defineStore('user', {
|
|||
appStore.setCurrentOrgId(res.lastOrganizationId || '');
|
||||
appStore.setCurrentProjectId(res.lastProjectId || '');
|
||||
this.setInfo(res);
|
||||
this.initLocalConfig(); // 获取本地执行配置
|
||||
if (res) {
|
||||
this.initLocalConfig(); // 获取本地执行配置
|
||||
}
|
||||
} catch (err) {
|
||||
clearToken();
|
||||
throw err;
|
||||
|
|
Loading…
Reference in New Issue