diff --git a/.env.mock b/.env.mock index 2340b43..90dfc5c 100644 --- a/.env.mock +++ b/.env.mock @@ -2,7 +2,7 @@ # 启动:npm run dev:mock VITE_BASE_HOST= VITE_SSO_HOST= -VITE_SERVICE_HOST=http://localhost:8070 +VITE_SERVICE_HOST=http://localhost:8101 VITE_ZIYUANKU_HOST= VITE_ZHUANXIANG_HOST= VITE_IS_MOCK=true diff --git a/src/App.vue b/src/App.vue index e2b8747..cfbcd17 100644 --- a/src/App.vue +++ b/src/App.vue @@ -62,7 +62,7 @@ onMounted(async () => { } } catch (error: any) { console.error("加载用户信息失败", error); - if (error !== "redirect") { + if (error?.message !== "redirect") { Message.error("载入用户信息失败,请检查后端服务是否正常!"); } // 降级:使用默认值("/" 即已收到页,无需跳转) @@ -101,4 +101,10 @@ body { height: 100%; overflow-y: auto; } +/* 表格操作列(operatingHandle 渲染的 Tooltip 包裹层)横排且随单元格居中 */ +.ivu-table-cell > .ivu-tooltip { + display: inline-block; + vertical-align: middle; + margin: 0 2px; +} \ No newline at end of file diff --git a/src/api/module/notice.ts b/src/api/module/notice.ts index 1216136..39a8ff8 100644 --- a/src/api/module/notice.ts +++ b/src/api/module/notice.ts @@ -214,11 +214,6 @@ class SettingApi { sortDeptDic(ids: string) { return postForm(`${DICT}/Sort`, { ids }); } - /** 同步基础平台部门 */ - getDeptSync() { - return get(`${DICT}/Sync`); - } - // ========== 自定义组管理 ========== /** 获取联系组列表 */ getGroup(page: number, count: number) { diff --git a/src/components/NoticeUpload.vue b/src/components/NoticeUpload.vue index 1eb95df..56032b2 100644 --- a/src/components/NoticeUpload.vue +++ b/src/components/NoticeUpload.vue @@ -1,22 +1,24 @@ @@ -87,12 +89,23 @@ export default {