Browse Source

vite config js page baseurl

master
王琳 5 months ago
parent
commit
6042c25138
  1. 2
      vite.config.js

2
vite.config.js

@ -3,7 +3,6 @@ import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vite.dev/config/
export default defineConfig({
plugins: [
@ -15,6 +14,7 @@ export default defineConfig({
'@': fileURLToPath(new URL('./src', import.meta.url))
},
},
base: '/crowdfunding/', // 设置资源的基础路径
server: {
// proxy: {
// '/api': {

Loading…
Cancel
Save