Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pc
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wbx-PCAndMobi
pc
Commits
2bc686c8
Commit
2bc686c8
authored
Jun 25, 2021
by
levante
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
6ab6a91b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
1569 deletions
+3
-1569
utils.js
build/utils.js
+0
-1
index.js
config/index.js
+1
-1
index.js
src/router/index.js
+2
-15
home copy.vue
src/views/home copy.vue
+0
-1552
No files found.
build/utils.js
View file @
2bc686c8
...
@@ -48,7 +48,6 @@ exports.cssLoaders = function (options) {
...
@@ -48,7 +48,6 @@ exports.cssLoaders = function (options) {
return
ExtractTextPlugin
.
extract
({
return
ExtractTextPlugin
.
extract
({
use
:
loaders
,
use
:
loaders
,
fallback
:
'vue-style-loader'
,
fallback
:
'vue-style-loader'
,
publicPath
:
'../../'
})
})
}
else
{
}
else
{
return
[
'vue-style-loader'
].
concat
(
loaders
)
return
[
'vue-style-loader'
].
concat
(
loaders
)
...
...
config/index.js
View file @
2bc686c8
...
@@ -65,7 +65,7 @@ module.exports = {
...
@@ -65,7 +65,7 @@ module.exports = {
// Paths
// Paths
assetsRoot
:
path
.
resolve
(
__dirname
,
'../dist'
),
assetsRoot
:
path
.
resolve
(
__dirname
,
'../dist'
),
assetsSubDirectory
:
'static'
,
assetsSubDirectory
:
'static'
,
assetsPublicPath
:
'./
pc/
'
,
// 设置生产地址,否则生产环境下在子项目刷新页面会空白
assetsPublicPath
:
'./'
,
// 设置生产地址,否则生产环境下在子项目刷新页面会空白
/**
/**
* Source Maps
* Source Maps
...
...
src/router/index.js
View file @
2bc686c8
...
@@ -7,22 +7,9 @@ import Cookie from '@/util/local-cookie'
...
@@ -7,22 +7,9 @@ import Cookie from '@/util/local-cookie'
Vue
.
use
(
Router
)
Vue
.
use
(
Router
)
const
router
=
new
Router
({
const
router
=
new
Router
({
mode
:
'h
ash
'
,
mode
:
'h
istory
'
,
// base: process.env.NODE_ENV === 'development' ? '/' : '/portal
/',
base
:
process
.
env
.
NODE_ENV
===
'development'
?
'/'
:
'/pc
/'
,
routes
,
routes
,
})
})
// router.beforeEach((to, from, next) => {
// // TODO
// store.commit('setWebviewSrc', to.meta && to.meta.src) // 判断有src的话为需要嵌入iframe的子项目
// const token = Cookie.get('token')
// // 当前无token且不在login页面则推到登录页面
// if (to.path != '/login' && !token) {
// next('/login')
// } else {
// next()
// }
// })
export
default
router
export
default
router
src/views/home copy.vue
deleted
100644 → 0
View file @
6ab6a91b
This diff is collapsed.
Click to expand it.
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