Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
柳 佳乐
小型无人机目标检测系统前端
Commits
459094c9
Commit
459094c9
authored
Jun 04, 2024
by
柳 佳乐
Browse files
first
parents
Pipeline
#35
canceled with stages
Changes
41
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
vue.config.js
0 → 100644
View file @
459094c9
const
{
defineConfig
}
=
require
(
'
@vue/cli-service
'
)
const
path
=
require
(
'
path
'
)
function
resolve
(
dir
)
{
return
path
.
join
(
__dirname
,
dir
)
}
module
.
exports
=
defineConfig
({
transpileDependencies
:
true
,
lintOnSave
:
false
,
productionSourceMap
:
false
,
devServer
:
{
open
:
true
,
https
:
false
,
hot
:
true
,
host
:
'
0.0.0.0
'
,
proxy
:
{
"
/api
"
:
{
target
:
'
http://192.168.3.6:8000
'
,
//代理地址 凡是使用/api
changeOrigin
:
true
,
//允许跨域请求
secure
:
false
,
pathRewrite
:
{
//重写路径 替换请求地址中的指定路径
[
'
^/api
'
]:
'
/
'
//将请求地址中的api替换为空
}
}
},
client
:
{
overlay
:
false
}
},
configureWebpack
:
{
resolve
:
{
alias
:
{
'
@
'
:
resolve
(
'
src
'
)
},
fallback
:
{
path
:
require
.
resolve
(
"
path-browserify
"
),
fs
:
false
,
crypto
:
false
,
},
}
},
css
:{
loaderOptions
:{
sass
:{
additionalData
:
`@import "./src/assets/scss/style.scss";`
}
}
}
})
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment