| | |
| | | configArcoResolverPlugin(), |
| | | configImageminPlugin(), |
| | | ], |
| | | server: { |
| | | open: true, // 项目启动后,自动打开 |
| | | fs: { |
| | | strict: true, |
| | | }, |
| | | proxy: { |
| | | '/base': { |
| | | target: 'http://192.168.20.116:8089', |
| | | changeOrigin: true, |
| | | ws: true, |
| | | }, |
| | | '/api': { |
| | | target: 'http://192.168.20.116:8089', |
| | | changeOrigin: true, |
| | | ws: true, |
| | | }, |
| | | '/api/v1': { |
| | | target: 'http://192.168.20.116:8089', |
| | | changeOrigin: true, |
| | | ws: true, |
| | | }, |
| | | }, |
| | | }, |
| | | build: { |
| | | rollupOptions: { |
| | | output: { |
| | |
| | | } |
| | | |
| | | export function logout() { |
| | | return axios.post<LoginRes>('/api/user/logout'); |
| | | return axios.post<LoginRes>('/base/logout'); |
| | | } |
| | | |
| | | export function getUserInfo() { |