From 8b7c9068de9d88d1c5caad8f4f45046d71c26df9 Mon Sep 17 00:00:00 2001
From: Huang <596417202@qq.com>
Date: Mon, 19 Sep 2022 16:45:15 +0800
Subject: [PATCH] style
---
src/pages/demo/index.vue | 12 ++++--------
vite.config.ts | 3 +--
2 files changed, 5 insertions(+), 10 deletions(-)
diff --git a/src/pages/demo/index.vue b/src/pages/demo/index.vue
index 90b9df4..107354f 100644
--- a/src/pages/demo/index.vue
+++ b/src/pages/demo/index.vue
@@ -1,24 +1,20 @@
- 页面构建中...54264536
-
- item1
- item2
+ 页面构建中...
+
+ List1 →
- List1 →
diff --git a/vite.config.ts b/vite.config.ts
index 3a7d942..2784ea0 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -3,7 +3,6 @@ import uni from '@dcloudio/vite-plugin-uni';
import eslintPlugin from 'vite-plugin-eslint';
import { resolve } from 'path';
import { loadEnv } from 'vite';
-import { isProdMode } from './src/utils/env';
// https://vitejs.cn/config/
export default ({ mode }: ConfigEnv): UserConfig => {
@@ -24,7 +23,7 @@ export default ({ mode }: ConfigEnv): UserConfig => {
terserOptions: {
compress: {
// 发布时删除 console
- drop_console: isProdMode(),
+ // drop_console: env.VITE_PROD as any,
},
},
},