diff --git a/components.d.ts b/components.d.ts index 70efff9..2f47f5b 100644 --- a/components.d.ts +++ b/components.d.ts @@ -19,6 +19,7 @@ declare module 'vue' { WdCollapseItem: typeof import('wot-design-uni/components/wd-collapse-item/wd-collapse-item.vue')['default'] WdDropMenu: typeof import('wot-design-uni/components/wd-drop-menu/wd-drop-menu.vue')['default'] WdDropMenuItem: typeof import('wot-design-uni/components/wd-drop-menu-item/wd-drop-menu-item.vue')['default'] + WdFab: typeof import('wot-design-uni/components/wd-fab/wd-fab.vue')['default'] WdForm: typeof import('wot-design-uni/components/wd-form/wd-form.vue')['default'] WdIcon: typeof import('wot-design-uni/components/wd-icon/wd-icon.vue')['default'] WdInput: typeof import('wot-design-uni/components/wd-input/wd-input.vue')['default'] diff --git a/src/components/TabBar.vue b/src/components/TabBar.vue index 667b43a..9c8501e 100644 --- a/src/components/TabBar.vue +++ b/src/components/TabBar.vue @@ -36,7 +36,8 @@ const nameLabelIconMap = { progress: { title: '进度管理', icon: 'transfer', - roles: ['teacher', 'admin', 'sysadmin'] as const // 校方教师、公司课程顾问、公司系统管理员 + roles: ['teacher', 'sysadmin'] as const // 校方教师、公司课程顾问、公司系统管理员 + // roles: ['teacher', 'admin', 'sysadmin'] as const // 校方教师、公司课程顾问、公司系统管理员 }, my: { title: '我的', diff --git a/src/composables/useConfig.ts b/src/composables/useConfig.ts index b7b0a46..aacb75d 100644 --- a/src/composables/useConfig.ts +++ b/src/composables/useConfig.ts @@ -5,7 +5,7 @@ export const useConfig = defineStore('config', () => { // const BASE_URL = ref("https://ppmp.fenshenzhike.com/api"); // const BASE_URL = ref("http://localhost:1218/api"); const BASE_URL = ref("http://192.168.0.119:1218/api"); - // const BASE_URL = ref("http://192.30.5.20:1218/api"); + // const BASE_URL = ref("http://192.30.5.14:1218/api"); return { BASE_URL diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index d8ac783..14dfdc1 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -11,6 +11,7 @@ import { useToast } from 'wot-design-uni'; import type { DropMenuItemBeforeToggle } from 'wot-design-uni/components/wd-drop-menu-item/types'; import WdTag from 'wot-design-uni/components/wd-tag/wd-tag.vue'; + const toast = useToast() const router = useRouter() const value = ref(0) @@ -192,7 +193,6 @@ onPullDownRefresh(() => { onLoad(() => { loadLessons() }) -