diff --git a/.env.development b/.env.development index a6e30d6..6a4bcee 100644 --- a/.env.development +++ b/.env.development @@ -1,3 +1,7 @@ # 开发环境接口地址 # VITE_API_URL=https://vue.ruoyi.vip/prod-api VITE_API_URL=http://localhost:9090 +# VITE_API_URL=http://dev.bar.beerape.com/prod-api + +VITE_API_STORE_URL=http://localhost:8080 + diff --git a/.env.production b/.env.production index 7cb9aa0..a687ea5 100644 --- a/.env.production +++ b/.env.production @@ -1,4 +1,6 @@ # 生产环境接口地址 -VITE_API_URL=https://vue.ruoyi.vip/prod-api +VITE_API_URL=http://bar.beerape.com/prod-api +VITE_API_STORE_URL=http://store.beerape.com + +# VITE_API_URL=http://dev.store.beerape.com/dev-api -FAST_POSTER_TOKEN_NAME=http://localhost:8080/fastposter diff --git a/dist.zip b/dist.zip new file mode 100644 index 0000000..8bdb385 Binary files /dev/null and b/dist.zip differ diff --git a/src/api/layout/index.js b/src/api/layout/index.js index 213d65f..f10b762 100644 --- a/src/api/layout/index.js +++ b/src/api/layout/index.js @@ -47,19 +47,7 @@ export async function getUserMenu() { // component: 'index', // meta: { title: '首页', icon: 'IconProHomeOutlined' } // }); - // 增加个人中心 - temp.push({ - path: '/profile', - component: 'profile', - meta: { - title: '个人中心', - icon: 'IconProUserOutlined', - active: '/index', - hide: true - } - }); - - temp.push({ + temp.unshift({ path: '/template', redirect: '/template', meta: { title: '模版管理', icon: 'IconProConnectionOutlined' }, @@ -71,6 +59,17 @@ export async function getUserMenu() { } ] }); + // 增加个人中心 + temp.push({ + path: '/profile', + component: 'profile', + meta: { + title: '个人中心', + icon: 'IconProUserOutlined', + active: '/index', + hide: true + } + }); // 修改图标 return mapTree(temp, (item) => { const meta = diff --git a/src/config/setting.js b/src/config/setting.js index 989f7f6..013ec0e 100644 --- a/src/config/setting.js +++ b/src/config/setting.js @@ -1,6 +1,8 @@ /** 接口地址 */ export const API_BASE_URL = import.meta.env.VITE_API_URL; +export const VITE_API_STORE_URL = import.meta.env.VITE_API_STORE_URL; + /** 项目名称 */ export const PROJECT_NAME = import.meta.env.VITE_APP_NAME; diff --git a/src/views/template/beer/index.vue b/src/views/template/beer/index.vue index 8790495..370f824 100644 --- a/src/views/template/beer/index.vue +++ b/src/views/template/beer/index.vue @@ -26,7 +26,7 @@ style="margin-top: 16px; overflow: hidden; cursor: pointer" > { console.log('打开新建:', fastUrl); // 构建编辑器URL const editorUrl = `${fastUrl}?token=${token}`; - // 在新窗口中打开编辑器(自动全屏) - window.open(editorUrl, '_blank', `fullscreen=yes,width=${screenWidth},height=${screenHeight},top=0,left=0,resizable=yes,scrollbars=yes,toolbar=no,menubar=no,status=no`); + // 在当前窗口中打开编辑器 + window.location.href = editorUrl; }; // 获取token