From 78f18847ef41bf12a04942c2af2018ee2894cd8e Mon Sep 17 00:00:00 2001
From: xinsin <2890826955@qq.com>
Date: Tue, 20 Jun 2023 22:06:49 +0800
Subject: [PATCH] 321
---
.env.production | 4 +--
index.html | 2 +-
package.json | 3 ++-
src/views/order/manager/index.vue | 43 ++++++++++++++++---------------
vite.config.ts | 4 +++
5 files changed, 31 insertions(+), 25 deletions(-)
diff --git a/.env.production b/.env.production
index e5a101b..78988d1 100644
--- a/.env.production
+++ b/.env.production
@@ -4,10 +4,10 @@ NODE_ENV = production
# 下面是自定义的环境变量,可以修改(命名必须以 VITE_ 开头)
## 后端接口公共路径(如果解决跨域问题采用 CORS 就需要写全路径)
-VITE_BASE_API = 'http://wzpmc.cn:8002'
+VITE_BASE_API = 'http://8.134.138.255:8001'
## 路由模式 hash 或 html5
VITE_ROUTER_HISTORY = 'hash'
## 打包路径(就是网站前缀,例如部署到 https://un-pany.github.io/v3-admin-vite/ 域名下,就需要填写 /v3-admin-vite/)
-VITE_PUBLIC_PATH = '/v3-admin-vite/'
+VITE_PUBLIC_PATH = '/'
diff --git a/index.html b/index.html
index 20cf850..414f58e 100644
--- a/index.html
+++ b/index.html
@@ -5,7 +5,7 @@
-
V3 Admin Vite
+ 运伦电商管理系统
diff --git a/package.json b/package.json
index 5df27b5..5affae8 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
{
- "name": "v3-admin-vite",
+ "name": "commerce_system",
"version": "3.3.4",
"description": "一个免费开源的中后台管理系统基础解决方案,基于 Vue3、TypeScript、Element Plus、Pinia 和 Vite 等主流技术.",
"author": {
@@ -64,6 +64,7 @@
"jsdom": "^21.1.1",
"lint-staged": "^13.2.0",
"prettier": "^2.8.4",
+ "rollup-plugin-visualizer": "^5.9.0",
"sass": "^1.59.3",
"terser": "^5.16.6",
"typescript": "^4.9.5",
diff --git a/src/views/order/manager/index.vue b/src/views/order/manager/index.vue
index 149563c..c86c756 100644
--- a/src/views/order/manager/index.vue
+++ b/src/views/order/manager/index.vue
@@ -17,37 +17,38 @@
-
+
+
+
+
+
-
-
+
+
+
{{ scope.row.orderStatus }}
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
+
+
+
+
+
+
{
const viteEnv = loadEnv(configEnv.mode, process.cwd()) as ImportMetaEnv
@@ -46,6 +47,9 @@ export default (configEnv: ConfigEnv): UserConfigExport => {
}
},
build: {
+ rollupOptions: {
+ plugins: [visualizer()]
+ },
/** 消除打包大小超过 500kb 警告 */
chunkSizeWarningLimit: 2000,
/** Vite 2.6.x 以上需要配置 minify: "terser", terserOptions 才能生效 */