-
+
{
const loadNode = async(resolve,id)=>{
try {
- state.leftListLoading = true
+ // state.leftListLoading = true
if(!id){
let res = await getDirectories({level:1})
resolve(res.data)
@@ -322,10 +322,10 @@ const loadNode = async(resolve,id)=>{
let res = await getDirectoriesUsers(id,{directory_uuid:id})
resolve(res.data)
}
- state.leftListLoading = false
+ // state.leftListLoading = false
} catch (error) {
console.log(error)
- state.leftListLoading = false
+ // state.leftListLoading = false
}
}
@@ -543,6 +543,8 @@ const {
@extend .flex;
justify-content: flex-start;
height: 45px;
+ font-size: 18px;
+
.tree-item-img1 {
width: 22px;
diff --git a/src/views/coordinate/personnelList/index.vue b/src/views/coordinate/personnelList/index.vue
index bdba8b0..0426423 100644
--- a/src/views/coordinate/personnelList/index.vue
+++ b/src/views/coordinate/personnelList/index.vue
@@ -209,7 +209,7 @@
所属部门
- {{ detail.dept?.deptName || '暂无' }}
+ {{ detail.organization || '暂无' }}
@@ -217,7 +217,7 @@
发起协作
-
+
@@ -322,6 +322,7 @@ const clickDetail = (item) => {
/** 发起协作邀请 */
const clickInitiate = () => {
+ console.log('发起协作邀请')
// state.loadText = '初始化协作房间中'
// state.load = true
// getUserStatus({ userIds: state.detail.userId })
diff --git a/src/views/custom/tabulaRase/index.vue b/src/views/custom/tabulaRase/index.vue
index 9f044e3..cc516a5 100644
--- a/src/views/custom/tabulaRase/index.vue
+++ b/src/views/custom/tabulaRase/index.vue
@@ -118,15 +118,16 @@ function getCanvasSize(container) {
onMounted(async () => {
try {
- await getInfo("self");
showLogin.value = false;
- } catch (err) {
- if (err.code === 401) {
+ const res = await getInfo("self");
+ console.log(res, "用户信息校验")
+ if (res.meta.code === 401) {
showLogin.value = true;
} else {
- showLogin.value = false;
- console.warn("⚠️ 用户信息校验失败:", err);
+ showLogin.value = false;
}
+ } catch (err) {
+ console.warn("⚠️ 用户信息校验失败:", err);
}
});
diff --git a/src/views/login.vue b/src/views/login.vue
index 680c391..fd04f15 100644
--- a/src/views/login.vue
+++ b/src/views/login.vue
@@ -112,21 +112,19 @@ function requestNotificationPermission() {
onMounted(async () => {
try {
loginView.value = true
- const arr = await getInfo("self");
- console.log(arr,'身份信息')
+ const res = await getInfo("self");
showLogin.value = false;
- router.push({
+ if (res.meta.code === 401) {
+ showLogin.value = true;
+ } else {
+ router.push({
path: '/whiteboard',
query: { room_uid: 'nxst-ok4j' }
- })
+ })
+ }
loginView.value = false
- } catch (err) {
- if (err.code === 401) {
- showLogin.value = true;
- } else {
- showLogin.value = false;
- console.warn("⚠️ 用户信息校验失败:", err);
- }
+ } catch (err) {
+ console.warn("⚠️ 用户信息校验失败:", err);
} finally {
loginView.value = false
}
diff --git a/vite.config.js b/vite.config.js
index d389a04..9791040 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -14,6 +14,7 @@ export default defineConfig({
}),
],
server: {
+ host: '0.0.0.0', // 关键配置,允许局域网访问
port: 3000,
open: true,
hmr: { overlay: false },
@@ -24,6 +25,13 @@ export default defineConfig({
ws: true,
rewrite: (path) =>
path.replace(new RegExp(`^/dev-api`), '')
+ },
+ '/livekit-api': {
+ target: 'https://meeting.cnsdt.com/api/v1', // 从环境变量读取
+ changeOrigin: true,
+ ws: true,
+ rewrite: (path) =>
+ path.replace(new RegExp(`^/livekit-api`), '')
}
}
},