diff --git a/.env.development b/.env.development index e72288ff..6c697361 100644 --- a/.env.development +++ b/.env.development @@ -1,6 +1,4 @@ -#请求的环境 测试环境 -VITE_HTTP_ENV=TEST +#请求的环境 +VITE_HTTP_ENV=DEV #请求地址 VITE_HTTP_URL=http://192.168.100.57/ -#emoss-admin服务请求地址 -VITE_HTTP_URL_EMOSS_ADMIN = http://192.168.100.57:8201/emoss-admin diff --git a/.env.production b/.env.production index f9c939b2..2f9a5d81 100644 --- a/.env.production +++ b/.env.production @@ -1,6 +1,4 @@ #请求的环境 正式环境 -VITE_HTTP_ENV=OFFICAL +VITE_HTTP_ENV=PROD #请求地址 VITE_HTTP_URL=http://119.23.220.176:17321 -#emoss-admin服务请求地址 -VITE_HTTP_URL_EMOSS_ADMIN = http://119.23.220.176:17321/emoss-admin diff --git a/.env.staging b/.env.staging new file mode 100644 index 00000000..b52f0e85 --- /dev/null +++ b/.env.staging @@ -0,0 +1,3 @@ +VITE_HTTP_ENV=STAGING +#请求地址 +VITE_HTTP_URL=http://119.23.220.176:17321 diff --git a/src/layouts/BasicLayout/components/GlobalTab/index.vue b/src/layouts/BasicLayout/components/GlobalTab/index.vue index 0a5438ee..4059dc58 100644 --- a/src/layouts/BasicLayout/components/GlobalTab/index.vue +++ b/src/layouts/BasicLayout/components/GlobalTab/index.vue @@ -31,6 +31,7 @@ :closable="item.name !== ROUTE_HOME.name" @click="handleClickTab(item.fullPath)" @close="removeMultiTab(item.fullPath)" + @contextmenu="handleContextMenu($event, item.fullPath)" > {{ item.meta?.title }} diff --git a/src/typings/env.d.ts b/src/typings/env.d.ts new file mode 100644 index 00000000..46d58517 --- /dev/null +++ b/src/typings/env.d.ts @@ -0,0 +1,12 @@ +interface ImportMetaEnv { + /** 项目标题 */ + VITE_APP_TITLE: string; + /** 项目标题(文本) */ + VITE_APP_TITLE_LABEL: string; + /** 项目基本地址 */ + VITE_BASE_URL: string; + /** 网路请求环境类型 */ + VITE_HTTP_ENV: string; + /** 网路请求地址 */ + VITE_HTTP_URL: string; +}