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

Loading…
Cancel
Save