fix: bug#11262
This commit is contained in:
parent
132aa4c920
commit
0a93fe096d
|
@ -28,7 +28,7 @@ router.beforeEach((to, from, next) => {
|
||||||
const userInfo = useUserInfo()
|
const userInfo = useUserInfo()
|
||||||
const system = useSystem()
|
const system = useSystem()
|
||||||
const menu = useMenuStore()
|
const menu = useMenuStore()
|
||||||
if (!menu.siderMenus.length && !filterPath.includes(to.path)) {
|
if (!Object.keys(menu.menus).length && !filterPath.includes(to.path)) {
|
||||||
userInfo.getUserInfo().then(() => {
|
userInfo.getUserInfo().then(() => {
|
||||||
system.getSystemVersion().then((menuData: any[]) => {
|
system.getSystemVersion().then((menuData: any[]) => {
|
||||||
menuData.forEach(r => {
|
menuData.forEach(r => {
|
||||||
|
|
|
@ -46,7 +46,7 @@ export const MESSAGE_SUBSCRIBE_MENU_DATA = {
|
||||||
permissions: [
|
permissions: [
|
||||||
{
|
{
|
||||||
permission: 'alarm-config',
|
permission: 'alarm-config',
|
||||||
action: ['query']
|
actions: ['query']
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -90,9 +90,9 @@ export default defineConfig(({ mode}) => {
|
||||||
|
|
||||||
proxy: {
|
proxy: {
|
||||||
[env.VITE_APP_BASE_API]: {
|
[env.VITE_APP_BASE_API]: {
|
||||||
target: 'http://192.168.32.226:8844',
|
// target: 'http://192.168.32.226:8844',
|
||||||
// target: 'http://192.168.32.244:8881',
|
// target: 'http://192.168.32.244:8881',
|
||||||
// target: 'http://120.77.179.54:8844', // 120测试
|
target: 'http://120.77.179.54:8844', // 120测试
|
||||||
// target: 'http://192.168.33.46:8844', // 本地开发环境
|
// target: 'http://192.168.33.46:8844', // 本地开发环境
|
||||||
ws: 'ws://192.168.33.46:8844',
|
ws: 'ws://192.168.33.46:8844',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
|
|
Loading…
Reference in New Issue