diff --git a/.env.development b/.env.development index 14e1335..91a7c3a 100644 --- a/.env.development +++ b/.env.development @@ -16,7 +16,7 @@ VITE_APP_MONITOR_ADMIN = 'http://localhost:9090/admin/applications' # SnailJob 控制台地址 VITE_APP_SNAILJOB_ADMIN = 'http://localhost:8800/snail-job' -VITE_APP_PORT = 80 +VITE_APP_PORT = 90 # 接口加密功能开关(如需关闭 后端也必须对应关闭) VITE_APP_ENCRYPT = true diff --git a/src/api/aaa/demo/index.ts b/src/api/aaa/demo/index.ts deleted file mode 100644 index 711da45..0000000 --- a/src/api/aaa/demo/index.ts +++ /dev/null @@ -1,62 +0,0 @@ -import request from '@/utils/request'; -import { AxiosPromise } from 'axios'; -import { DemoVO, DemoForm, DemoQuery } from '@/api/demo/demo/types'; - -/** - * 查询测试单列表 - * @param query - * @returns {*} - */ -export const selectById = (id) => { - return request({ - url: `/student/selectById/${id}`, - method: 'get', - }); -}; - -/** - * 查询测试单详细 - * @param id - */ -export const selectAll = (date) => { - return request({ - url: '/student/selectAll', - method: 'get', - data:date - }); -}; - -/** - * 新增测试单 - * @param data - */ -export const add = (data: DemoForm) => { - return request({ - url: '/student/add', - method: 'post', - data: data - }); -}; - -/** - * 修改测试单 - * @param data - */ -export const update = (data: DemoForm) => { - return request({ - url: '/student/update', - method: 'put', - data: data - }); -}; - -/** - * 删除测试单 - * @param id - */ -export const deleteById = (id: string | number | Array) => { - return request({ - url: '/student//deleteById/{id}' + id, - method: 'delete' - }); -}; diff --git a/src/views/school/student/index.vue b/src/views/school/student/index.vue index e920bc0..3db5243 100644 --- a/src/views/school/student/index.vue +++ b/src/views/school/student/index.vue @@ -1,250 +1,237 @@ - - diff --git a/vite.config.ts b/vite.config.ts index 58ca5f2..e25fb82 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -24,7 +24,7 @@ export default defineConfig(({ mode, command }) => { open: true, proxy: { [env.VITE_APP_BASE_API]: { - target: 'http://localhost:8080', + target: 'http://localhost:8888', changeOrigin: true, ws: true, rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '')