Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pet-business-web
Project
Project
Details
Activity
Releases
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
刘怀志
pet-business-web
Commits
0a697f79
Commit
0a697f79
authored
May 23, 2023
by
v_liuhuaizhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加管理路由
parent
479346fe
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
5 deletions
+19
-5
permission.js
src/permission.js
+0
-1
index.js
src/router/index.js
+16
-1
article-management.vue
src/views/article-management/article-management.vue
+1
-1
vue.config.js
vue.config.js
+2
-2
No files found.
src/permission.js
View file @
0a697f79
...
...
@@ -12,7 +12,6 @@ const whiteList = ['/login', '/register', '/privacy-policy']
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
NProgress
.
start
()
debugger
;
if
(
getToken
())
{
to
.
meta
.
title
&&
store
.
dispatch
(
'settings/setTitle'
,
to
.
meta
.
title
)
/* has token*/
...
...
src/router/index.js
View file @
0a697f79
...
...
@@ -112,6 +112,21 @@ export const constantRoutes = [
]
},
{
path
:
'/article-management'
,
component
:
Layout
,
hidden
:
true
,
permissions
:
[
'*:*:*'
],
children
:
[
{
path
:
'index'
,
props
:
true
,
component
:
()
=>
import
(
'@/views/article-management/article-management'
),
name
:
'Article-management'
,
meta
:
{
title
:
'文章管理'
,
icon
:
'component'
}
}
]
},
//行政详情路由
{
path
:
'/administrative-management'
,
...
...
@@ -438,7 +453,7 @@ Router.prototype.push = function push(location) {
}
export
default
new
Router
({
base
:
window
.
__POWERED_BY_QIANKUN__
?
'/pet-
micro
/'
:
'/'
,
base
:
window
.
__POWERED_BY_QIANKUN__
?
'/pet-
business-web
/'
:
'/'
,
mode
:
'history'
,
// 去掉url中的#
scrollBehavior
:
()
=>
({
y
:
0
}),
routes
:
constantRoutes
...
...
src/views/article-management/article-management.vue
View file @
0a697f79
<
template
>
<div>
文章管理
</div>
<div>
文章管理
-微服务
</div>
</
template
>
<
script
>
...
...
vue.config.js
View file @
0a697f79
...
...
@@ -57,9 +57,9 @@ module.exports = {
configureWebpack
:
{
name
:
name
,
output
:
{
library
:
'pet-
micro
'
,
library
:
'pet-
business-web
'
,
libraryTarget
:
'umd'
,
// 把微应用打包成 umd 库格式
jsonpFunction
:
`webpackJsonp_pet-
micro
`
,
jsonpFunction
:
`webpackJsonp_pet-
business-web
`
,
},
resolve
:
{
alias
:
{
...
...
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