diff --git a/.env b/.env index 52ffac5..b95302c 100644 --- a/.env +++ b/.env @@ -5,5 +5,5 @@ VITE_PORT = 868 VITE_OPEN = false # public path 配置线上环境路径(打包)、本地通过 http-server 访问时,请置空即可 -VITE_PUBLIC_PATH = /vue/ -#VITE_PUBLIC_PATH = / +#VITE_PUBLIC_PATH = /vue/ +VITE_PUBLIC_PATH = / diff --git a/.env.development b/.env.development index 509f434..d0ab708 100644 --- a/.env.development +++ b/.env.development @@ -4,5 +4,4 @@ ENV = 'development' # 本地环境接口地址 VITE_API_URL = 'http://localhost:5000/' #VITE_API_URL = 'http://localhost:8088/' -#VITE_API_URL = 'http://222.92.228.219:5302/' VITE_UI_URL = 'http://localhost:868/' diff --git a/.env.production b/.env.production index 3e08982..8430cde 100644 --- a/.env.production +++ b/.env.production @@ -4,7 +4,5 @@ ENV = 'production' # 线上环境接口地址 #VITE_API_URL = 'https://lyt-top.gitee.io/vue-next-admin-preview/' -VITE_API_URL = 'http://222.92.228.219:5301/' -#VITE_API_URL = 'http://10.0.2.40:5302/' -#VITE_API_URL = 'http://localhost:5000/' +VITE_API_URL = 'http://localhost:5000/' diff --git a/src/comps/page/index.ts b/src/comps/page/index.ts index a830467..3df6f95 100644 --- a/src/comps/page/index.ts +++ b/src/comps/page/index.ts @@ -33,9 +33,9 @@ export async function listDelete(state: any) { type: 'warning', }) .then(async () => { - ElMessage.warning('演示模式,禁用了删除'); - // await request({url: state.url + '/' + delIds, method: 'delete',}); - // await listQuery(state); + // ElMessage.warning('演示模式,禁用了删除'); + await request({url: state.url + '/' + delIds, method: 'delete',}); + await listQuery(state); }) .catch(() => ElMessage.info('已取消删除')); } @@ -47,9 +47,9 @@ export const listItemDelete = async (state: any, id: string) => { type: 'warning', }) .then(async () => { - ElMessage.warning('演示模式,禁用了删除'); - // await request({url: state.url + '/' + id, method: 'delete',}); - // await listQuery(state); + // ElMessage.warning('演示模式,禁用了删除'); + await request({url: state.url + '/' + id, method: 'delete',}); + await listQuery(state); }) .catch(() => ElMessage.info('已取消删除')); }; @@ -82,9 +82,9 @@ export async function treeDelete(state: any) { type: 'warning', }) .then(async () => { - ElMessage.warning('演示模式,禁用了删除'); - // await request({url: state.url + '/' + delIds, method: 'delete',}); - // await treeQuery(state); + // ElMessage.warning('演示模式,禁用了删除'); + await request({url: state.url + '/' + delIds, method: 'delete',}); + await treeQuery(state); }) .catch(() => ElMessage.info('已取消删除')); } @@ -96,9 +96,9 @@ export const treeItemDelete = async (state: any, id: string) => { type: 'warning', }) .then(async () => { - ElMessage.warning('演示模式,禁用了删除'); - // await request({url: state.url + '/' + id, method: 'delete',}); - // await treeQuery(state); + // ElMessage.warning('演示模式,禁用了删除'); + await request({url: state.url + '/' + id, method: 'delete',}); + await treeQuery(state); }) .catch(() => ElMessage.info('已取消删除')); };