| | |
| | | proxy: { |
| | | '/base': { |
| | | // target: 'http://aiotlink.com:8189', |
| | | //target: 'http://192.168.20.116:8089', |
| | | target: 'http://192.168.20.158:8089', |
| | | target: 'http://192.168.20.116:8089', |
| | | // target: 'http://192.168.20.158:8089', |
| | | changeOrigin: true, |
| | | ws: true, |
| | | // rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''), |
| | |
| | | }, |
| | | '/api': { |
| | | // target: 'http://aiotlink.com:8189', |
| | | //target: 'http://192.168.20.116:8089', |
| | | target: 'http://192.168.20.158:8089', |
| | | target: 'http://192.168.20.116:8089', |
| | | // target: 'http://192.168.20.158:8089', |
| | | changeOrigin: true, |
| | | ws: true, |
| | | // rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''), |
| | | }, |
| | | '/api/v1': { |
| | | // target: 'http://aiotlink.com:8189', |
| | | //target: 'http://192.168.20.116:8089', |
| | | target: 'http://192.168.20.158:8089', |
| | | target: 'http://192.168.20.116:8089', |
| | | // target: 'http://192.168.20.158:8089', |
| | | changeOrigin: true, |
| | | ws: true, |
| | | // rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''), |
| | |
| | | import useUser from '@/hooks/user'; |
| | | import Menu from '@/components/menu/index.vue'; |
| | | import MessageBox from '../message-box/index.vue'; |
| | | import login from '@/assets/images/icon-logo.png'; |
| | | |
| | | const appStore = useAppStore(); |
| | | const userStore = useUserStore(); |
| | |
| | | const { changeLocale, currentLocale } = useLocale(); |
| | | const { isFullscreen, toggle: toggleFullScreen } = useFullscreen(); |
| | | const locales = [...LOCALE_OPTIONS]; |
| | | const avatar = computed(() => { |
| | | return userStore.avatar; |
| | | }); |
| | | const avatar = login; |
| | | //const avatar = computed(() => { |
| | | // return userStore.avatar; |
| | | //}); |
| | | const theme = computed(() => { |
| | | return appStore.theme; |
| | | }); |