| | |
| | | const userInfo = ref(null); |
| | | const roleKeyInfo = ref(null); |
| | | // const baseUrlHt = ref(window.location.origin+'/api'); |
| | | // const baseUrlHt = ref('http://www.qdopo.com:9095'); |
| | | const baseUrlHt = ref('http://www.qdopo.com:9095'); |
| | | // const baseUrlHt = ref("http://192.168.100.10:8080"); |
| | | const baseUrlHt = ref("https://opo.qduh.cn:443"); |
| | | // const baseUrlHt = ref("http://localhost:8080"); |
| | | // const baseUrlHt = ref("https://opo.qduh.cn:443"); |
| | | |
| | | // getters |
| | | const isLoggedIn = computed(() => !!token.value); |
| | |
| | | uni.setStorageSync("userInfo", info); |
| | | } |
| | | function setroleKey(roleKey) { |
| | | // 更灵活的角色权限映射 |
| | | // 更灵活的角色权限映射2 |
| | | if (ADMIN_ROLES.includes(roleKey)) { |
| | | roleKeyInfo.value = 1; // 管理员权限 |
| | | } else if (DOCTOR_ROLES.includes(roleKey)) { |