fix(系统设置): 修复只有系统成员角色任务中心报错缺陷

This commit is contained in:
xinxin.wu 2024-12-10 16:02:46 +08:00 committed by Craftsman
parent d9fe90b3e1
commit 768185db2d
2 changed files with 6 additions and 0 deletions

View File

@ -268,6 +268,9 @@
const shareTime = ref<string>(''); const shareTime = ref<string>('');
async function getTime() { async function getTime() {
if (!appStore.currentProjectId) {
return;
}
try { try {
const res = await getShareTime(appStore.currentProjectId); const res = await getShareTime(appStore.currentProjectId);
const match = res.match(/^(\d+)([MYHD])$/); const match = res.match(/^(\d+)([MYHD])$/);

View File

@ -677,6 +677,9 @@
const shareTime = ref<string>(''); const shareTime = ref<string>('');
async function getTime() { async function getTime() {
if (!appStore.currentProjectId) {
return;
}
try { try {
const res = await getShareTime(appStore.currentProjectId); const res = await getShareTime(appStore.currentProjectId);
const match = res.match(/^(\d+)([MYHD])$/); const match = res.match(/^(\d+)([MYHD])$/);