Skip to content

Commit

Permalink
去掉base,使用默认
Browse files Browse the repository at this point in the history
  • Loading branch information
ouyangchengjun committed Oct 28, 2024
1 parent cb94274 commit 0476a32
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* @Author: 欧阳承珺
* @LastEditors: 欧阳承珺
* @Date: 2024-10-25 10:38:30
* @LastEditTime: 2024-10-25 17:54:55
* @LastEditTime: 2024-10-28 11:38:15
*/
import { fileURLToPath, URL } from 'node:url'

Expand All @@ -19,7 +19,6 @@ import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'

// https://vite.dev/config/
export default defineConfig({
base: '/newportal/', // 匹配 Nginx 配置的路径前缀
plugins: [
vue(),
AutoImport({
Expand All @@ -35,11 +34,7 @@ export default defineConfig({
resolvers: [ElementPlusResolver()]
}),
UnoCSS({
presets: [
presetUno(),
presetAttributify(),
presetIcons()
]
presets: [presetUno(), presetAttributify(), presetIcons()]
})
],
css: {
Expand Down

0 comments on commit 0476a32

Please sign in to comment.