Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-h5-ailipay
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 9261a228
authored
Mar 09, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改
1 parent
97f63eed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
src/main.js
vue.config.js
src/main.js
View file @
9261a22
...
...
@@ -38,7 +38,7 @@ Vue.prototype.to = function (name, params) {
import
VConsole
from
'vconsole'
const
isMock
=
[
'prod'
].
includes
(
process
.
env
.
NODE_ENV
)
const
isMock
=
[
'prod'
,
'production'
].
includes
(
process
.
env
.
NODE_ENV
)
fetchConfig
(
!
isMock
).
then
(
res
=>
{
// 从配置服务器获取动态配置
// 设置 js中可以访问 $cdn
...
...
vue.config.js
View file @
9261a22
...
...
@@ -50,7 +50,7 @@ const spritesmithFunction = data => {
return
`
${
shared
}
\n
${
perSprite
}
`
}
module
.
exports
=
{
publicPath
:
IS_PROD
?
'./'
:
'/dj-scrm-wx-work-
main
/'
,
// 本地调试时需登录时使用
publicPath
:
IS_PROD
?
'./'
:
'/dj-scrm-wx-work-
lwk
/'
,
// 本地调试时需登录时使用
// publicPath: './',
// publicPath: '/dj-scrm-wx-work-attachment-activity/', // 署应用包时的基本 URL。 vue-router history模式使用
outputDir
:
'dist'
,
// 生产环境构建文件的目录
...
...
@@ -61,7 +61,7 @@ module.exports = {
disableHostCheck
:
true
,
port
:
9527
,
// 端口
open
:
false
,
// 启动后打开浏览器
public
:
'http://scrm.dev.glsx.com.cn/dj-scrm-wx-
work-main
/#/'
,
public
:
'http://scrm.dev.glsx.com.cn/dj-scrm-wx-
lwk
/#/'
,
overlay
:
{
// 当出现编译器错误或警告时,在浏览器中显示全屏覆盖层
warnings
:
false
,
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment