web iframe结构实现
This commit is contained in:
@@ -7,7 +7,11 @@ import { fileURLToPath } from 'url'
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url)
|
||||
const __dirname = dirname(__filename)
|
||||
|
||||
export default defineConfig({
|
||||
// Platform 是根路径应用
|
||||
base: '/',
|
||||
|
||||
plugins: [
|
||||
vue({
|
||||
script: {
|
||||
@@ -50,6 +54,7 @@ export default defineConfig({
|
||||
port: 5001,
|
||||
host: true,
|
||||
cors: true,
|
||||
open: '/', // 开发时自动打开到根路径
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:8180',
|
||||
|
||||
Reference in New Issue
Block a user