|
@@ -10,7 +10,6 @@ import Components from 'unplugin-vue-components/vite';
|
|
|
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers';
|
|
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers';
|
|
|
import { AntDesignXVueResolver } from 'ant-design-x-vue/resolver';
|
|
import { AntDesignXVueResolver } from 'ant-design-x-vue/resolver';
|
|
|
import { VantResolver } from '@vant/auto-import-resolver';
|
|
import { VantResolver } from '@vant/auto-import-resolver';
|
|
|
-import { analysis, chat } from './src/request';
|
|
|
|
|
|
|
|
|
|
// https://vite.dev/config/
|
|
// https://vite.dev/config/
|
|
|
export default defineConfig((configEnv) => {
|
|
export default defineConfig((configEnv) => {
|
|
@@ -50,15 +49,15 @@ export default defineConfig((configEnv) => {
|
|
|
target: `https://wx.hzliuzhi.com:4433`,
|
|
target: `https://wx.hzliuzhi.com:4433`,
|
|
|
ws: true,
|
|
ws: true,
|
|
|
},
|
|
},
|
|
|
- '/api/analysis': {
|
|
|
|
|
|
|
+ '/api/tongue': {
|
|
|
changeOrigin: true,
|
|
changeOrigin: true,
|
|
|
- rewrite: (path) => path.replace(/^\/api\/analysis/, ''),
|
|
|
|
|
|
|
+ rewrite: (path) => path.replace(/^\/api\/tongue/, ''),
|
|
|
target: `https://tongue.hzliuzhi.com:62006`,
|
|
target: `https://tongue.hzliuzhi.com:62006`,
|
|
|
ws: true,
|
|
ws: true,
|
|
|
},
|
|
},
|
|
|
- '/api/chat': {
|
|
|
|
|
|
|
+ '/api/guide': {
|
|
|
changeOrigin: true,
|
|
changeOrigin: true,
|
|
|
- rewrite: (path) => path.replace(/^\/api\/chat/, ''),
|
|
|
|
|
|
|
+ rewrite: (path) => path.replace(/^\/api\/guide/, ''),
|
|
|
target: `https://dev.hzliuzhi.com:62006`,
|
|
target: `https://dev.hzliuzhi.com:62006`,
|
|
|
ws: true,
|
|
ws: true,
|
|
|
},
|
|
},
|