Commit d3c474d4 authored by v_liuhuaizhi's avatar v_liuhuaizhi

文章编辑--init

parent 0da9fc26
...@@ -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' }
} }
] ]
}, },
......
...@@ -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: 'ArticleEdit', params: { id: row.id } name: 'Article-edit', params: { id: row.id }
}) })
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */
......
...@@ -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: `https://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]: ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment