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
d3c474d4
Commit
d3c474d4
authored
Jun 01, 2023
by
v_liuhuaizhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文章编辑--init
parent
0da9fc26
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
index.js
src/router/index.js
+7
-0
article-management.vue
src/views/article-management/article-management.vue
+1
-1
vue.config.js
vue.config.js
+1
-1
No files found.
src/router/index.js
View file @
d3c474d4
...
@@ -125,6 +125,13 @@ export const constantRoutes = [
...
@@ -125,6 +125,13 @@ export const constantRoutes = [
component
:
()
=>
import
(
'@/views/article-management/article-management'
),
component
:
()
=>
import
(
'@/views/article-management/article-management'
),
name
:
'Article-management'
,
name
:
'Article-management'
,
meta
:
{
title
:
'文章管理'
,
icon
:
'component'
}
meta
:
{
title
:
'文章管理'
,
icon
:
'component'
}
},
{
path
:
'article-edit'
,
props
:
true
,
component
:
()
=>
import
(
'@/views/article-management/article-edit'
),
name
:
'Article-edit'
,
meta
:
{
title
:
'文章编辑'
,
icon
:
'component'
}
}
}
]
]
},
},
...
...
src/views/article-management/article-management.vue
View file @
d3c474d4
...
@@ -309,7 +309,7 @@ export default {
...
@@ -309,7 +309,7 @@ export default {
this
.
reset
()
this
.
reset
()
console
.
log
(
"start to edit..."
)
console
.
log
(
"start to edit..."
)
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
'Article
E
dit'
,
params
:
{
id
:
row
.
id
}
name
:
'Article
-e
dit'
,
params
:
{
id
:
row
.
id
}
}
)
}
)
}
,
}
,
/** 删除按钮操作 */
/** 删除按钮操作 */
...
...
vue.config.js
View file @
d3c474d4
...
@@ -69,7 +69,7 @@ module.exports = {
...
@@ -69,7 +69,7 @@ module.exports = {
proxy
:
{
proxy
:
{
// detail: https://cli.vuejs.org/config/#devserver-proxy
// detail: https://cli.vuejs.org/config/#devserver-proxy
[
process
.
env
.
VUE_APP_BASE_API
]:
{
[
process
.
env
.
VUE_APP_BASE_API
]:
{
target
:
`http
s://localhost:8090
`
,
target
:
`http
://114.67.241.140:8091
`
,
hangeOrigin
:
true
,
hangeOrigin
:
true
,
pathRewrite
:
{
pathRewrite
:
{
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
[
'^'
+
process
.
env
.
VUE_APP_BASE_API
]:
''
...
...
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