提交 0d434794 编写于 作者: 6 6289aca71a7e4862742d51ec

跨域操作

上级 4bfc90fb
# preview.yml
autoOpen: true # 打开工作空间时是否自动开启所有应用的预览
apps:
- port: 8080 # 应用的端口
run: yarn serve # 应用的启动命令
command: # 使用此命令启动服务,且不执行run
root: ./ # 应用的启动目录
name: my-first-app # 应用名称
description: 我的第一个 App。 # 应用描述
autoOpen: true # 打开工作空间时是否自动开启预览(优先级高于根级 autoOpen)
\ No newline at end of file
......@@ -3,6 +3,12 @@ const path = require('path')
const lessUrl=path.join(__dirname+'/src/styles/cover.less')
module.exports = defineConfig({
devServer: {
// 本地配置host生效
allowedHosts:'all',
},
transpileDependencies: true,
//代码检查
lintOnSave: false,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册