zs 1 год назад
Родитель
Сommit
ed77f18cba

+ 1 - 1
src/stores/basic/dictData.ts

@@ -6,7 +6,7 @@ import _ from 'lodash';
 import type { IQueryType, IQueryResult, IQueryParams } from '@/util/types.util';
 const axios = new AxiosWrapper();
 const api = {
-  url: `/follow/v1/api/dictData`
+  url: `/follow/api/dictData`
 };
 export const DictDataStore = defineStore('dictData', () => {
   const count = ref(0);

+ 1 - 1
src/stores/basic/dictType.ts

@@ -6,7 +6,7 @@ import _ from 'lodash';
 import type { IQueryType, IQueryResult, IQueryParams } from '@/util/types.util';
 const axios = new AxiosWrapper();
 const api = {
-  url: `/follow/v1/api/dictType`
+  url: `/follow/api/dictType`
 };
 export const DictTypeStore = defineStore('dictType', () => {
   const count = ref(0);

+ 1 - 1
src/stores/basic/menus.ts

@@ -6,7 +6,7 @@ import _ from 'lodash';
 import type { IQueryType, IQueryResult, IQueryParams } from '@/util/types.util';
 const axios = new AxiosWrapper();
 const api = {
-  url: `/follow/v1/api/menus`
+  url: `/follow/api/menus`
 };
 export const MenusStore = defineStore('menus', () => {
   const count = ref(0);

+ 1 - 1
src/stores/basic/role.ts

@@ -6,7 +6,7 @@ import _ from 'lodash';
 import type { IQueryType, IQueryResult, IQueryParams } from '@/util/types.util';
 const axios = new AxiosWrapper();
 const api = {
-  url: `/travel/v1/api/role`
+  url: `/follow/api/role`
 };
 export const RoleStore = defineStore('role', () => {
   const count = ref(0);

+ 1 - 1
src/stores/users/admin.ts

@@ -6,7 +6,7 @@ import _ from 'lodash';
 import type { IQueryType, IQueryResult, IQueryParams } from '@/util/types.util';
 const axios = new AxiosWrapper();
 const api = {
-  url: `/follow/v1/api/admin`
+  url: `/follow/api/admin`
 };
 export const AdminStore = defineStore('admin', () => {
   const count = ref(0);

+ 1 - 1
src/stores/users/doctor.ts

@@ -6,7 +6,7 @@ import _ from 'lodash';
 import type { IQueryType, IQueryResult, IQueryParams } from '@/util/types.util';
 const axios = new AxiosWrapper();
 const api = {
-  url: `/follow/v1/api/doctor`
+  url: `/follow/api/doctor`
 };
 export const DoctorStore = defineStore('doctor', () => {
   const count = ref(0);

+ 1 - 1
src/stores/users/nurse.ts

@@ -6,7 +6,7 @@ import _ from 'lodash';
 import type { IQueryType, IQueryResult, IQueryParams } from '@/util/types.util';
 const axios = new AxiosWrapper();
 const api = {
-  url: `/follow/v1/api/nurse`
+  url: `/follow/api/nurse`
 };
 export const NurseStore = defineStore('nurse', () => {
   const count = ref(0);

+ 4 - 1
vite.config.ts

@@ -18,9 +18,12 @@ export default defineConfig(({ mode }) => {
           target: 'https://broadcast.waityou24.cn',
           changeOrigin: true
         },
-        '/follow/v1/api': {
+        '/follow/api': {
           target: 'http://192.168.1.113:8890',
           changeOrigin: true,
+          pathRewrite: {
+            '^/follow/api': ''
+          },
           ws: false
         }
       },