新增请求配置,对接登录接口

This commit is contained in:
gyq
2024-02-26 11:46:21 +08:00
parent 5298ff2569
commit 9744a968bb
13 changed files with 457 additions and 261 deletions

View File

@@ -6,6 +6,15 @@ import path from "path";
// https://vitejs.dev/config/
export default defineConfig({
server: {
proxy: {
'/api': {
target: 'https://cashierclient.sxczgkj.cn/cashier-client',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
}
},
plugins: [
vue(),
electron({