Browse Source

将 /background 路由更改为 /bg

reghao 3 months ago
parent
commit
d25fbeb743

+ 5 - 5
src/components/layout/NavBar.vue

@@ -284,7 +284,7 @@ export default {
       this.$router.push(path)
       this.$router.push(path)
     },
     },
     goToPlaylist() {
     goToPlaylist() {
-      const path = '/background/my/album'
+      const path = '/bg/my/album'
       if (this.$route.path === path) {
       if (this.$route.path === path) {
         this.$router.go(0)
         this.$router.go(0)
         return
         return
@@ -292,7 +292,7 @@ export default {
       this.$router.push(path)
       this.$router.push(path)
     },
     },
     goToHistory() {
     goToHistory() {
-      const path = '/background/my/history'
+      const path = '/bg/my/history'
       if (this.$route.path === path) {
       if (this.$route.path === path) {
         this.$router.go(0)
         this.$router.go(0)
         return
         return
@@ -300,7 +300,7 @@ export default {
       this.$router.push(path)
       this.$router.push(path)
     },
     },
     goToBackground() {
     goToBackground() {
-      const path = '/background'
+      const path = '/bg'
       if (this.$route.path === path) {
       if (this.$route.path === path) {
         this.$router.go(0)
         this.$router.go(0)
         return
         return
@@ -316,7 +316,7 @@ export default {
       this.$router.push(path)
       this.$router.push(path)
     },
     },
     goToMessage() {
     goToMessage() {
-      const path = '/background/my/message'
+      const path = '/bg/my/message'
       if (this.$route.path === path) {
       if (this.$route.path === path) {
         this.$router.go(0)
         this.$router.go(0)
         return
         return
@@ -324,7 +324,7 @@ export default {
       this.$router.push(path)
       this.$router.push(path)
     },
     },
     goToPublish() {
     goToPublish() {
-      const path = '/background/post/video'
+      const path = '/bg/post/video'
       if (this.$route.path === path) {
       if (this.$route.path === path) {
         this.$router.go(0)
         this.$router.go(0)
         return
         return

+ 5 - 5
src/components/layout/NavBarNoSearch.vue

@@ -123,7 +123,7 @@ export default {
       this.$router.push(path)
       this.$router.push(path)
     },
     },
     goToPlaylist() {
     goToPlaylist() {
-      const path = '/background/my/album'
+      const path = '/bg/my/album'
       if (this.$route.path === path) {
       if (this.$route.path === path) {
         this.$router.go(0)
         this.$router.go(0)
         return
         return
@@ -131,7 +131,7 @@ export default {
       this.$router.push(path)
       this.$router.push(path)
     },
     },
     goToHistory() {
     goToHistory() {
-      const path = '/background/my/history'
+      const path = '/bg/my/history'
       if (this.$route.path === path) {
       if (this.$route.path === path) {
         this.$router.go(0)
         this.$router.go(0)
         return
         return
@@ -139,7 +139,7 @@ export default {
       this.$router.push(path)
       this.$router.push(path)
     },
     },
     goToBackground() {
     goToBackground() {
-      const path = '/background'
+      const path = '/bg'
       if (this.$route.path === path) {
       if (this.$route.path === path) {
         this.$router.go(0)
         this.$router.go(0)
         return
         return
@@ -155,7 +155,7 @@ export default {
       this.$router.push(path)
       this.$router.push(path)
     },
     },
     goToMessage() {
     goToMessage() {
-      const path = '/background/my/message'
+      const path = '/bg/my/message'
       if (this.$route.path === path) {
       if (this.$route.path === path) {
         this.$router.go(0)
         this.$router.go(0)
         return
         return
@@ -163,7 +163,7 @@ export default {
       this.$router.push(path)
       this.$router.push(path)
     },
     },
     goToPublish() {
     goToPublish() {
-      const path = '/background/post/video'
+      const path = '/bg/post/video'
       if (this.$route.path === path) {
       if (this.$route.path === path) {
         this.$router.go(0)
         this.$router.go(0)
         return
         return

+ 5 - 5
src/router/background_account.js

@@ -9,26 +9,26 @@ const MyRecord = () => import('views/my/MyRecord')
 const MyOAuth = () => import('views/my/MyOAuth')
 const MyOAuth = () => import('views/my/MyOAuth')
 
 
 export default {
 export default {
-  path: '/background/account',
-  redirect: '/background/account/profile',
+  path: '/bg/account',
+  redirect: '/bg/account/profile',
   name: 'Account',
   name: 'Account',
   component: Background,
   component: Background,
   meta: { needAuth: true },
   meta: { needAuth: true },
   children: [
   children: [
     {
     {
-      path: '/background/account/profile',
+      path: '/bg/account/profile',
       name: 'MyProfile',
       name: 'MyProfile',
       component: MyProfile,
       component: MyProfile,
       meta: { title: '个人资料', needAuth: true }
       meta: { title: '个人资料', needAuth: true }
     },
     },
     {
     {
-      path: '/background/account/record',
+      path: '/bg/account/record',
       name: 'MyRecord',
       name: 'MyRecord',
       component: MyRecord,
       component: MyRecord,
       meta: { title: '登入历史', needAuth: true }
       meta: { title: '登入历史', needAuth: true }
     },
     },
     {
     {
-      path: '/background/account/oauth',
+      path: '/bg/account/oauth',
       name: 'OAuth',
       name: 'OAuth',
       component: MyOAuth,
       component: MyOAuth,
       meta: { title: 'OAuth认证', needAuth: true }
       meta: { title: 'OAuth认证', needAuth: true }

+ 6 - 6
src/router/background_admin.js

@@ -9,32 +9,32 @@ const AdminVideoList = () => import('views/admin/AdminVideoList')
 const AdminAvatarList = () => import('views/admin/AdminAvatarList')
 const AdminAvatarList = () => import('views/admin/AdminAvatarList')
 
 
 export default {
 export default {
-  path: '/background/admin',
-  redirect: '/background/account',
+  path: '/bg/admin',
+  redirect: '/bg/account',
   name: 'Admin',
   name: 'Admin',
   component: Background,
   component: Background,
   meta: { needAuth: true },
   meta: { needAuth: true },
   children: [
   children: [
     {
     {
-      path: '/background/admin/charge',
+      path: '/bg/admin/charge',
       name: 'AdminCharge',
       name: 'AdminCharge',
       component: AdminCharge,
       component: AdminCharge,
       meta: { needAuth: true }
       meta: { needAuth: true }
     },
     },
     {
     {
-      path: '/background/admin/user',
+      path: '/bg/admin/user',
       name: 'AdminUserList',
       name: 'AdminUserList',
       component: AdminUserList,
       component: AdminUserList,
       meta: { needAuth: true }
       meta: { needAuth: true }
     },
     },
     {
     {
-      path: '/background/admin/video',
+      path: '/bg/admin/video',
       name: 'AdminVideoList',
       name: 'AdminVideoList',
       component: AdminVideoList,
       component: AdminVideoList,
       meta: { needAuth: true }
       meta: { needAuth: true }
     },
     },
     {
     {
-      path: '/background/admin/avatar',
+      path: '/bg/admin/avatar',
       name: 'AdminAvatarList',
       name: 'AdminAvatarList',
       component: AdminAvatarList,
       component: AdminAvatarList,
       meta: { needAuth: true }
       meta: { needAuth: true }

+ 8 - 8
src/router/background_backend.js

@@ -11,44 +11,44 @@ const AdminAccessLog = () => import('views/admin/backend/AdminAccessLog')
 const AdminRuntimeLog = () => import('views/admin/backend/AdminRuntimeLog')
 const AdminRuntimeLog = () => import('views/admin/backend/AdminRuntimeLog')
 
 
 export default {
 export default {
-  path: '/background/backend',
-  redirect: '/background/account',
+  path: '/bg/backend',
+  redirect: '/bg/account',
   name: 'Backend',
   name: 'Backend',
   component: Background,
   component: Background,
   meta: { needAuth: true },
   meta: { needAuth: true },
   children: [
   children: [
     {
     {
-      path: '/background/backend/gateway',
+      path: '/bg/backend/gateway',
       name: 'Gateway',
       name: 'Gateway',
       component: AdminGateway,
       component: AdminGateway,
       meta: { needAuth: true }
       meta: { needAuth: true }
     },
     },
     {
     {
-      path: '/background/backend/dubbo_service',
+      path: '/bg/backend/dubbo_service',
       name: 'DubboService',
       name: 'DubboService',
       component: AdminDubboService,
       component: AdminDubboService,
       meta: { needAuth: true }
       meta: { needAuth: true }
     },
     },
     {
     {
-      path: '/background/backend/springcloud_service',
+      path: '/bg/backend/springcloud_service',
       name: 'SpringCloudService',
       name: 'SpringCloudService',
       component: AdminSpringCloudService,
       component: AdminSpringCloudService,
       meta: { needAuth: true }
       meta: { needAuth: true }
     },
     },
     {
     {
-      path: '/background/backend/access_log',
+      path: '/bg/backend/access_log',
       name: 'AccessLog',
       name: 'AccessLog',
       component: AdminAccessLog,
       component: AdminAccessLog,
       meta: { needAuth: true }
       meta: { needAuth: true }
     },
     },
     {
     {
-      path: '/background/backend/runtime_log',
+      path: '/bg/backend/runtime_log',
       name: 'RuntimeLog',
       name: 'RuntimeLog',
       component: AdminRuntimeLog,
       component: AdminRuntimeLog,
       meta: { needAuth: true }
       meta: { needAuth: true }
     },
     },
     {
     {
-      path: '/background/backend/realtime_log',
+      path: '/bg/backend/realtime_log',
       name: 'Realtime',
       name: 'Realtime',
       component: AdminBackendLog,
       component: AdminBackendLog,
       meta: { needAuth: true }
       meta: { needAuth: true }

+ 5 - 5
src/router/background_blog.js

@@ -4,26 +4,26 @@ const BlogPost = () => import('views/blog/BlogPost')
 const BlogQuestion = () => import('views/blog/BlogQuestion')
 const BlogQuestion = () => import('views/blog/BlogQuestion')
 
 
 export default {
 export default {
-  path: '/background/blog',
-  redirect: '/background/account',
+  path: '/bg/blog',
+  redirect: '/bg/account',
   name: 'OSS',
   name: 'OSS',
   component: Background,
   component: Background,
   meta: { needAuth: true, roles: ['admin'] },
   meta: { needAuth: true, roles: ['admin'] },
   children: [
   children: [
     {
     {
-      path: '/background/blog/category',
+      path: '/bg/blog/category',
       name: 'AdminStoreConfig',
       name: 'AdminStoreConfig',
       component: BlogCategory,
       component: BlogCategory,
       meta: { needAuth: true }
       meta: { needAuth: true }
     },
     },
     {
     {
-      path: '/background/blog/post',
+      path: '/bg/blog/post',
       name: 'BlogPost',
       name: 'BlogPost',
       component: BlogPost,
       component: BlogPost,
       meta: { needAuth: true }
       meta: { needAuth: true }
     },
     },
     {
     {
-      path: '/background/blog/question',
+      path: '/bg/blog/question',
       name: 'BlogQuestion',
       name: 'BlogQuestion',
       component: BlogQuestion,
       component: BlogQuestion,
       meta: { needAuth: true }
       meta: { needAuth: true }

+ 30 - 30
src/router/devops.js → src/router/background_devops.js

@@ -1,5 +1,5 @@
 // ********************************************************************************************************************
 // ********************************************************************************************************************
-const Background = () => import('views/devops/Background')
+const Background = () => import('views/admin/Background')
 const Dashboard = () => import('views/devops/Dashboard')
 const Dashboard = () => import('views/devops/Dashboard')
 
 
 // user
 // user
@@ -31,8 +31,8 @@ const RealtimeLog = () => import('views/devops/sys/RealtimeLog')
 const Webhook = () => import('views/devops/sys/Webhook')
 const Webhook = () => import('views/devops/sys/Webhook')
 
 
 export default {
 export default {
-  path: '/devops',
-  name: 'Admin',
+  path: '/bg',
+  name: 'Background',
   component: Background,
   component: Background,
   meta: { needAuth: true },
   meta: { needAuth: true },
   children: [
   children: [
@@ -43,25 +43,25 @@ export default {
       meta: { needAuth: true }
       meta: { needAuth: true }
     },
     },
     {
     {
-      path: '/devops/user',
+      path: '/bg/user',
       name: 'UserProfile',
       name: 'UserProfile',
       component: { render: (e) => e('router-view') },
       component: { render: (e) => e('router-view') },
       meta: { needAuth: true },
       meta: { needAuth: true },
       children: [
       children: [
         {
         {
-          path: '/devops/user/profile',
+          path: '/bg/user/profile',
           name: 'UserProfile',
           name: 'UserProfile',
           component: UserProfile,
           component: UserProfile,
           meta: { needAuth: true }
           meta: { needAuth: true }
         },
         },
         {
         {
-          path: '/devops/user/record',
+          path: '/bg/user/record',
           name: 'UserLogin',
           name: 'UserLogin',
           component: UserLogin,
           component: UserLogin,
           meta: { needAuth: true }
           meta: { needAuth: true }
         },
         },
         {
         {
-          path: '/devops/user/message',
+          path: '/bg/user/message',
           name: 'UserMessage',
           name: 'UserMessage',
           component: UserMessage,
           component: UserMessage,
           meta: { needAuth: true }
           meta: { needAuth: true }
@@ -69,19 +69,19 @@ export default {
       ]
       ]
     },
     },
     {
     {
-      path: '/devops/machine',
+      path: '/bg/machine',
       name: 'MachineHost',
       name: 'MachineHost',
       component: { render: (e) => e('router-view') },
       component: { render: (e) => e('router-view') },
       meta: { needAuth: true },
       meta: { needAuth: true },
       children: [
       children: [
         {
         {
-          path: '/devops/machine/host',
+          path: '/bg/machine/host',
           name: 'MachineHost',
           name: 'MachineHost',
           component: MachineHost,
           component: MachineHost,
           meta: { needAuth: true, roles: ['admin'] }
           meta: { needAuth: true, roles: ['admin'] }
         },
         },
         {
         {
-          path: '/devops/machine/aliyun_key',
+          path: '/bg/machine/aliyun_key',
           name: 'AliyunKey',
           name: 'AliyunKey',
           component: AliyunKey,
           component: AliyunKey,
           meta: { needAuth: true, roles: ['admin'] }
           meta: { needAuth: true, roles: ['admin'] }
@@ -89,37 +89,37 @@ export default {
       ]
       ]
     },
     },
     {
     {
-      path: '/devops/build',
+      path: '/bg/build',
       name: 'BuildDir',
       name: 'BuildDir',
       component: { render: (e) => e('router-view') },
       component: { render: (e) => e('router-view') },
       meta: { needAuth: true },
       meta: { needAuth: true },
       children: [
       children: [
         {
         {
-          path: '/devops/build/dir',
+          path: '/bg/build/dir',
           name: 'BuildDir',
           name: 'BuildDir',
           component: BuildDir,
           component: BuildDir,
           meta: { needAuth: true }
           meta: { needAuth: true }
         },
         },
         {
         {
-          path: '/devops/build/repo_auth',
+          path: '/bg/build/repo_auth',
           name: 'RepoAuth',
           name: 'RepoAuth',
           component: RepoAuth,
           component: RepoAuth,
           meta: { needAuth: true }
           meta: { needAuth: true }
         },
         },
         {
         {
-          path: '/devops/build/compiler',
+          path: '/bg/build/compiler',
           name: 'Compiler',
           name: 'Compiler',
           component: Compiler,
           component: Compiler,
           meta: { needAuth: true }
           meta: { needAuth: true }
         },
         },
         {
         {
-          path: '/devops/build/docker_registry',
+          path: '/bg/build/docker_registry',
           name: 'DockerRegistry',
           name: 'DockerRegistry',
           component: DockerRegistry,
           component: DockerRegistry,
           meta: { needAuth: true }
           meta: { needAuth: true }
         },
         },
         {
         {
-          path: '/devops/build/packer',
+          path: '/bg/build/packer',
           name: 'Packer',
           name: 'Packer',
           component: Packer,
           component: Packer,
           meta: { needAuth: true }
           meta: { needAuth: true }
@@ -127,25 +127,25 @@ export default {
       ]
       ]
     },
     },
     {
     {
-      path: '/devops/app',
+      path: '/bg/app',
       name: 'AppConfig',
       name: 'AppConfig',
       component: { render: (e) => e('router-view') },
       component: { render: (e) => e('router-view') },
       meta: { needAuth: true },
       meta: { needAuth: true },
       children: [
       children: [
         {
         {
-          path: '/devops/app/config',
+          path: '/bg/app/config',
           name: 'AppConfig',
           name: 'AppConfig',
           component: AppConfig,
           component: AppConfig,
           meta: { needAuth: true }
           meta: { needAuth: true }
         },
         },
         {
         {
-          path: '/devops/app/bd',
+          path: '/bg/app/bd',
           name: 'BuildDeploy',
           name: 'BuildDeploy',
           component: BuildDeploy,
           component: BuildDeploy,
           meta: { needAuth: true }
           meta: { needAuth: true }
         },
         },
         {
         {
-          path: '/devops/app/stat',
+          path: '/bg/app/stat',
           name: 'AppStat',
           name: 'AppStat',
           component: AppStat,
           component: AppStat,
           meta: { needAuth: true }
           meta: { needAuth: true }
@@ -153,37 +153,37 @@ export default {
       ]
       ]
     },
     },
     {
     {
-      path: '/devops/sys',
+      path: '/bg/sys',
       name: 'SiteConfig',
       name: 'SiteConfig',
       component: { render: (e) => e('router-view') },
       component: { render: (e) => e('router-view') },
       meta: { needAuth: true },
       meta: { needAuth: true },
       children: [
       children: [
         {
         {
-          path: '/devops/sys/site',
+          path: '/bg/sys/site',
           name: 'SiteConfig',
           name: 'SiteConfig',
           component: SiteConfig,
           component: SiteConfig,
           meta: { needAuth: true, roles: ['admin'] }
           meta: { needAuth: true, roles: ['admin'] }
         },
         },
         {
         {
-          path: '/devops/sys/access_log',
+          path: '/bg/sys/access_log',
           name: 'AccessLog',
           name: 'AccessLog',
           component: AccessLog,
           component: AccessLog,
           meta: { needAuth: true, roles: ['admin'] }
           meta: { needAuth: true, roles: ['admin'] }
         },
         },
         {
         {
-          path: '/devops/sys/runtime_log',
+          path: '/bg/sys/runtime_log',
           name: 'RuntimeLog',
           name: 'RuntimeLog',
           component: RuntimeLog,
           component: RuntimeLog,
           meta: { needAuth: true, roles: ['admin'] }
           meta: { needAuth: true, roles: ['admin'] }
         },
         },
         {
         {
-          path: '/devops/sys/realtime_log',
+          path: '/bg/sys/realtime_log',
           name: 'RealtimeLog',
           name: 'RealtimeLog',
           component: RealtimeLog,
           component: RealtimeLog,
           meta: { needAuth: true, roles: ['admin'] }
           meta: { needAuth: true, roles: ['admin'] }
         },
         },
         {
         {
-          path: '/devops/sys/webhook',
+          path: '/bg/sys/webhook',
           name: 'Webhook',
           name: 'Webhook',
           component: Webhook,
           component: Webhook,
           meta: { needAuth: true, roles: ['admin'] }
           meta: { needAuth: true, roles: ['admin'] }
@@ -191,25 +191,25 @@ export default {
       ]
       ]
     },
     },
     {
     {
-      path: '/devops/rbac',
+      path: '/bg/rbac',
       name: 'RBAC',
       name: 'RBAC',
       component: { render: (e) => e('router-view') },
       component: { render: (e) => e('router-view') },
       meta: { needAuth: true },
       meta: { needAuth: true },
       children: [
       children: [
         {
         {
-          path: '/devops/rbac/menu',
+          path: '/bg/rbac/menu',
           name: 'Menu',
           name: 'Menu',
           component: Menu,
           component: Menu,
           meta: { needAuth: true, roles: ['admin'] }
           meta: { needAuth: true, roles: ['admin'] }
         },
         },
         {
         {
-          path: '/devops/rbac/role',
+          path: '/bg/rbac/role',
           name: 'Role',
           name: 'Role',
           component: Role,
           component: Role,
           meta: { needAuth: true, roles: ['admin'] }
           meta: { needAuth: true, roles: ['admin'] }
         },
         },
         {
         {
-          path: '/devops/rbac/user',
+          path: '/bg/rbac/user',
           name: 'User',
           name: 'User',
           component: User,
           component: User,
           meta: { needAuth: true, roles: ['admin'] }
           meta: { needAuth: true, roles: ['admin'] }

+ 4 - 4
src/router/background_file.js

@@ -3,20 +3,20 @@ const AdminStoreNode = () => import('views/admin/oss/AdminStoreNode')
 const AdminUserNode = () => import('views/admin/oss/AdminUserNode')
 const AdminUserNode = () => import('views/admin/oss/AdminUserNode')
 
 
 export default {
 export default {
-  path: '/background/file',
-  redirect: '/background/account',
+  path: '/bg/file',
+  redirect: '/bg/account',
   name: 'OSS',
   name: 'OSS',
   component: Background,
   component: Background,
   meta: { needAuth: true, roles: ['admin'] },
   meta: { needAuth: true, roles: ['admin'] },
   children: [
   children: [
     {
     {
-      path: '/background/file/list',
+      path: '/bg/file/list',
       name: 'AdminStoreConfig',
       name: 'AdminStoreConfig',
       component: AdminStoreNode,
       component: AdminStoreNode,
       meta: { needAuth: true }
       meta: { needAuth: true }
     },
     },
     {
     {
-      path: '/background/file/image',
+      path: '/bg/file/image',
       name: 'AdminUserNode',
       name: 'AdminUserNode',
       component: AdminUserNode,
       component: AdminUserNode,
       meta: { needAuth: true }
       meta: { needAuth: true }

+ 10 - 10
src/router/background_my.js

@@ -17,56 +17,56 @@ const History = () => import('views/post/History')
 const AlbumPost = () => import('views/post/AlbumPost')
 const AlbumPost = () => import('views/post/AlbumPost')
 
 
 export default {
 export default {
-  path: '/background/my',
-  redirect: '/background/account',
+  path: '/bg/my',
+  redirect: '/bg/account',
   name: 'My',
   name: 'My',
   component: Background,
   component: Background,
   meta: { needAuth: true },
   meta: { needAuth: true },
   children: [
   children: [
     {
     {
-      path: '/background/my/album',
+      path: '/bg/my/album',
       name: 'AlbumPost',
       name: 'AlbumPost',
       component: AlbumPost,
       component: AlbumPost,
       meta: { title: '播放列表', needAuth: true }
       meta: { title: '播放列表', needAuth: true }
     },
     },
     {
     {
-      path: '/background/my/history',
+      path: '/bg/my/history',
       name: 'History',
       name: 'History',
       component: History,
       component: History,
       meta: { title: '历史记录', needAuth: true }
       meta: { title: '历史记录', needAuth: true }
     },
     },
     {
     {
-      path: '/background/my/vip',
+      path: '/bg/my/vip',
       name: 'MyVip',
       name: 'MyVip',
       component: MyVip,
       component: MyVip,
       meta: { title: '我的会员', needAuth: true }
       meta: { title: '我的会员', needAuth: true }
     },
     },
     {
     {
-      path: '/background/my/wallet',
+      path: '/bg/my/wallet',
       name: 'MyWallet',
       name: 'MyWallet',
       component: MyWallet,
       component: MyWallet,
       meta: { title: '我的钱包', needAuth: true }
       meta: { title: '我的钱包', needAuth: true }
     },
     },
     {
     {
-      path: '/background/my/message',
+      path: '/bg/my/message',
       name: 'MyMessage',
       name: 'MyMessage',
       component: MyMessage,
       component: MyMessage,
       meta: { title: '我的消息', needAuth: true }
       meta: { title: '我的消息', needAuth: true }
     },
     },
     {
     {
-      path: '/background/my/rcmd',
+      path: '/bg/my/rcmd',
       name: 'Rcmd',
       name: 'Rcmd',
       component: MyRcmd,
       component: MyRcmd,
       meta: { title: '推荐设置', needAuth: true }
       meta: { title: '推荐设置', needAuth: true }
     },
     },
     {
     {
-      path: '/background/my/contact',
+      path: '/bg/my/contact',
       name: 'MyContact',
       name: 'MyContact',
       component: MyContact,
       component: MyContact,
       meta: { title: '联系人', needAuth: true }
       meta: { title: '联系人', needAuth: true }
     },
     },
     {
     {
-      path: '/background/my/device',
+      path: '/bg/my/device',
       name: 'MyDevice',
       name: 'MyDevice',
       component: MyDevice,
       component: MyDevice,
       meta: { title: '我的设备', needAuth: true }
       meta: { title: '我的设备', needAuth: true }

+ 6 - 6
src/router/background_oss.js

@@ -5,32 +5,32 @@ const AdminUploadChannel = () => import('views/admin/oss/AdminUploadChannel')
 const AdminStoreObject = () => import('views/admin/oss/AdminStoreObject')
 const AdminStoreObject = () => import('views/admin/oss/AdminStoreObject')
 
 
 export default {
 export default {
-  path: '/background/oss',
-  redirect: '/background/account',
+  path: '/bg/oss',
+  redirect: '/bg/account',
   name: 'OSS',
   name: 'OSS',
   component: Background,
   component: Background,
   meta: { needAuth: true, roles: ['admin'] },
   meta: { needAuth: true, roles: ['admin'] },
   children: [
   children: [
     {
     {
-      path: '/background/oss/store_node',
+      path: '/bg/oss/store_node',
       name: 'AdminStoreConfig',
       name: 'AdminStoreConfig',
       component: AdminStoreNode,
       component: AdminStoreNode,
       meta: { needAuth: true }
       meta: { needAuth: true }
     },
     },
     {
     {
-      path: '/background/oss/user_node',
+      path: '/bg/oss/user_node',
       name: 'AdminUserNode',
       name: 'AdminUserNode',
       component: AdminUserNode,
       component: AdminUserNode,
       meta: { needAuth: true }
       meta: { needAuth: true }
     },
     },
     {
     {
-      path: '/background/oss/upload_channel',
+      path: '/bg/oss/upload_channel',
       name: 'AdminUploadChannel',
       name: 'AdminUploadChannel',
       component: AdminUploadChannel,
       component: AdminUploadChannel,
       meta: { needAuth: true }
       meta: { needAuth: true }
     },
     },
     {
     {
-      path: '/background/oss/object',
+      path: '/bg/oss/object',
       name: 'AdminStoreObject',
       name: 'AdminStoreObject',
       component: AdminStoreObject,
       component: AdminStoreObject,
       meta: { needAuth: true }
       meta: { needAuth: true }

+ 8 - 8
src/router/background_post.js

@@ -9,44 +9,44 @@ const ArticlePost = () => import('views/post/ArticlePost')
 const ArticlePostEdit = () => import('views/post/ArticlePostEdit')
 const ArticlePostEdit = () => import('views/post/ArticlePostEdit')
 
 
 export default {
 export default {
-  path: '/background/post',
-  redirect: '/background/account',
+  path: '/bg/post',
+  redirect: '/bg/account',
   name: 'Post',
   name: 'Post',
   component: Background,
   component: Background,
   meta: { needAuth: true },
   meta: { needAuth: true },
   children: [
   children: [
     {
     {
-      path: '/background/post/video',
+      path: '/bg/post/video',
       name: 'VideoPost',
       name: 'VideoPost',
       component: VideoPost,
       component: VideoPost,
       meta: { title: '视频稿件', needAuth: true }
       meta: { title: '视频稿件', needAuth: true }
     },
     },
     {
     {
-      path: '/background/post/video/edit/:videoId',
+      path: '/bg/post/video/edit/:videoId',
       name: 'VideoPostEdit',
       name: 'VideoPostEdit',
       component: VideoPostEdit,
       component: VideoPostEdit,
       meta: { needAuth: true }
       meta: { needAuth: true }
     },
     },
     {
     {
-      path: '/background/post/image',
+      path: '/bg/post/image',
       name: 'ImagePost',
       name: 'ImagePost',
       component: ImagePost,
       component: ImagePost,
       meta: { title: '相册稿件', needAuth: true }
       meta: { title: '相册稿件', needAuth: true }
     },
     },
     {
     {
-      path: '/background/post/image/edit/:albumId',
+      path: '/bg/post/image/edit/:albumId',
       name: 'ImagePostEdit',
       name: 'ImagePostEdit',
       component: ImagePostEdit,
       component: ImagePostEdit,
       meta: { needAuth: true }
       meta: { needAuth: true }
     },
     },
     {
     {
-      path: '/background/post/article',
+      path: '/bg/post/article',
       name: 'ArticlePost',
       name: 'ArticlePost',
       component: ArticlePost,
       component: ArticlePost,
       meta: { title: '文章稿件', needAuth: true }
       meta: { title: '文章稿件', needAuth: true }
     },
     },
     {
     {
-      path: '/background/post/article/edit/:articleId',
+      path: '/bg/post/article/edit/:articleId',
       name: 'ArticlePostEdit',
       name: 'ArticlePostEdit',
       component: ArticlePostEdit,
       component: ArticlePostEdit,
       meta: { needAuth: true }
       meta: { needAuth: true }

+ 6 - 6
src/router/background_site.js

@@ -6,32 +6,32 @@ const AdminCategory = () => import('views/admin/site/AdminCategory')
 const AdminRegistry = () => import('views/admin/site/AdminRegistry')
 const AdminRegistry = () => import('views/admin/site/AdminRegistry')
 
 
 export default {
 export default {
-  path: '/background/site',
-  redirect: '/background/account',
+  path: '/bg/site',
+  redirect: '/bg/account',
   name: 'Site',
   name: 'Site',
   component: Background,
   component: Background,
   meta: { needAuth: true, roles: ['admin'] },
   meta: { needAuth: true, roles: ['admin'] },
   children: [
   children: [
     {
     {
-      path: '/background/site/store',
+      path: '/bg/site/store',
       name: 'AdminStoreConfig',
       name: 'AdminStoreConfig',
       component: AdminStoreConfig,
       component: AdminStoreConfig,
       meta: { needAuth: true }
       meta: { needAuth: true }
     },
     },
     {
     {
-      path: '/background/site/notify',
+      path: '/bg/site/notify',
       name: 'AdminNotifyConfig',
       name: 'AdminNotifyConfig',
       component: AdminNotifyConfig,
       component: AdminNotifyConfig,
       meta: { needAuth: true }
       meta: { needAuth: true }
     },
     },
     {
     {
-      path: '/background/site/registry',
+      path: '/bg/site/registry',
       name: 'AdminRegistry',
       name: 'AdminRegistry',
       component: AdminRegistry,
       component: AdminRegistry,
       meta: { needAuth: true }
       meta: { needAuth: true }
     },
     },
     {
     {
-      path: '/background/site/category',
+      path: '/bg/site/category',
       name: 'AdminCategory',
       name: 'AdminCategory',
       component: AdminCategory,
       component: AdminCategory,
       meta: { needAuth: true }
       meta: { needAuth: true }

+ 10 - 4
src/router/index.js

@@ -4,9 +4,9 @@ import Vue from 'vue'
 import DiskRouter from './disk'
 import DiskRouter from './disk'
 import UserRouter from './user'
 import UserRouter from './user'
 import SearchRouter from './search'
 import SearchRouter from './search'
-import DevopsRouter from './devops'
 import BlogRouter from './blog'
 import BlogRouter from './blog'
 import VodRouter from './vod'
 import VodRouter from './vod'
+import BackgroundDevopsRouter from './background_devops'
 import BackgroundAccountRouter from './background_account'
 import BackgroundAccountRouter from './background_account'
 import BackgroundMyRouter from './background_my'
 import BackgroundMyRouter from './background_my'
 import BackgroundPostRouter from './background_post'
 import BackgroundPostRouter from './background_post'
@@ -23,6 +23,7 @@ const Login = () => import('views/Login1')
 const Register = () => import('views/Register')
 const Register = () => import('views/Register')
 const Forgot = () => import('views/Forgot')
 const Forgot = () => import('views/Forgot')
 const Index = () => import('views/Index')
 const Index = () => import('views/Index')
+const Background = () => import('views/admin/Background')
 
 
 // ********************************************************************************************************************
 // ********************************************************************************************************************
 // 使用安装路由插件
 // 使用安装路由插件
@@ -31,9 +32,9 @@ export const constantRoutes = [
   DiskRouter,
   DiskRouter,
   UserRouter,
   UserRouter,
   SearchRouter,
   SearchRouter,
-  DevopsRouter,
   BlogRouter,
   BlogRouter,
   VodRouter,
   VodRouter,
+  BackgroundDevopsRouter,
   BackgroundAccountRouter,
   BackgroundAccountRouter,
   BackgroundMyRouter,
   BackgroundMyRouter,
   BackgroundPostRouter,
   BackgroundPostRouter,
@@ -50,11 +51,16 @@ export const constantRoutes = [
     meta: { needAuth: false }
     meta: { needAuth: false }
   },
   },
   {
   {
-    path: '/background',
-    redirect: '/background/account',
+    path: '/bg',
     name: 'Background',
     name: 'Background',
     meta: { needAuth: false }
     meta: { needAuth: false }
   },
   },
+  {
+    path: '/bg',
+    name: 'Background',
+    component: Background,
+    meta: { needAuth: false }
+  },
   {
   {
     path: '/login',
     path: '/login',
     name: 'Login',
     name: 'Login',

+ 2 - 2
src/views/Index.vue

@@ -77,13 +77,13 @@ export default {
         {
         {
           title: 'devops',
           title: 'devops',
           desc: '商城',
           desc: '商城',
-          link: '/devops',
+          link: '/bg',
           coverUrl: ''
           coverUrl: ''
         },
         },
         {
         {
           title: 'bg',
           title: 'bg',
           desc: '图表',
           desc: '图表',
-          link: '/background',
+          link: '/bg',
           coverUrl: ''
           coverUrl: ''
         }
         }
       )
       )

+ 398 - 266
src/views/admin/LeftAside.vue

@@ -11,7 +11,7 @@
     :collapse-transition="collapseTransition"
     :collapse-transition="collapseTransition"
   >
   >
     <div class="logobox">
     <div class="logobox">
-      <a href="/background" style="text-decoration-line: none">
+      <a href="/bg" style="text-decoration-line: none">
         <img class="logoimg" src="@/assets/img/logo.png" alt="">
         <img class="logoimg" src="@/assets/img/logo.png" alt="">
       </a>
       </a>
     </div>
     </div>
@@ -27,27 +27,6 @@
         </el-menu-item>
         </el-menu-item>
       </el-menu-item-group>
       </el-menu-item-group>
     </el-submenu>
     </el-submenu>
-    <!--    <el-submenu index="/background/account">
-      <template slot="title">
-        <i class="el-icon-user" />
-        <span>我的帐号</span>
-      </template>
-      <el-menu-item-group>
-        <el-menu-item index="/background/account/profile">
-          <i class="el-icon-user" />
-          <span slot="title">个人资料</span>
-        </el-menu-item>
-        <el-menu-item index="/background/account/record">
-          <i class="el-icon-message" />
-          <span slot="title">登入历史</span>
-        </el-menu-item>
-        <el-menu-item index="/background/account/oauth">
-          <i class="el-icon-film" />
-          <span slot="title">OAuth</span>
-        </el-menu-item>
-      </el-menu-item-group>
-    </el-submenu>
-    -->
   </el-menu>
   </el-menu>
 </template>
 </template>
 
 
@@ -58,7 +37,8 @@ export default {
     return {
     return {
       collapsed: false,
       collapsed: false,
       collapseTransition: false,
       collapseTransition: false,
-      menuList: []
+      menuList: [],
+      devops: true
     }
     }
   },
   },
   mounted() {
   mounted() {
@@ -72,256 +52,408 @@ export default {
   },
   },
   methods: {
   methods: {
     initSideMenu() {
     initSideMenu() {
-      this.menuList = [
-        {
-          url: '/background/account',
-          title: '我的帐号',
-          icon: 'el-icon-user',
-          children: [
-            {
-              url: '/background/account/profile',
-              title: '个人资料',
-              icon: 'el-icon-user'
-            },
-            {
-              url: '/background/account/record',
-              title: '登入记录',
-              icon: 'el-icon-user'
-            },
-            {
-              url: '/background/account/oauth',
-              title: 'OAuth应用',
-              icon: 'el-icon-user'
-            }
-          ]
-        },
-        {
-          url: '/background/my',
-          title: '我的',
-          icon: 'el-icon-s-data',
-          children: [
-            {
-              url: '/background/my/message',
-              title: '我的消息',
-              icon: 'el-icon-s-data'
-            },
-            {
-              url: '/background/my/wallet',
-              title: '我的钱包',
-              icon: 'el-icon-s-data'
-            },
-            {
-              url: '/background/my/vip',
-              title: '我的会员',
-              icon: 'el-icon-s-data'
-            },
-            {
-              url: '/background/my/contact',
-              title: '联系人',
-              icon: 'el-icon-s-data'
-            },
-            {
-              url: '/background/my/album',
-              title: '收藏夹',
-              icon: 'el-icon-s-data'
-            },
-            {
-              url: '/background/my/history',
-              title: '历史记录',
-              icon: 'el-icon-s-data'
-            },
-            {
-              url: '/background/my/rcmd',
-              title: '推荐设置',
-              icon: 'el-icon-s-data'
-            },
-            {
-              url: '/background/my/device',
-              title: '我的设备',
-              icon: 'el-icon-s-data'
-            }
-          ]
-        },
-        {
-          url: '/background/post',
-          title: '我的稿件',
-          icon: 'el-icon-film',
-          children: [
-            {
-              url: '/background/post/video',
-              title: '视频稿件',
-              icon: 'el-icon-film'
-            },
-            {
-              url: '/background/post/image',
-              title: '相册稿件',
-              icon: 'el-icon-film'
-            },
-            {
-              url: '/background/post/article',
-              title: '文章稿件',
-              icon: 'el-icon-film'
-            }
-          ]
-        },
-        {
-          url: '/background/oss',
-          title: '存储系统',
-          icon: 'el-icon-files',
-          children: [
-            {
-              url: '/background/oss/store_node',
-              title: '存储节点',
-              icon: 'el-icon-files'
-            },
-            {
-              url: '/background/oss/user_node',
-              title: '我的节点',
-              icon: 'el-icon-files'
-            },
-            {
-              url: '/background/oss/upload_channel',
-              title: '上传通道',
-              icon: 'el-icon-files'
-            },
-            {
-              url: '/background/oss/object',
-              title: '对象列表',
-              icon: 'el-icon-files'
-            }
-          ]
-        },
-        {
-          url: '/background/blog',
-          title: '我的博客',
-          icon: 'el-icon-files',
-          children: [
-            {
-              url: '/background/blog/category',
-              title: '分类管理',
-              icon: 'el-icon-files'
-            },
-            {
-              url: '/background/blog/post',
-              title: '文章管理',
-              icon: 'el-icon-files'
-            },
-            {
-              url: '/background/blog/question',
-              title: '面试题',
-              icon: 'el-icon-files'
-            }
-          ]
-        },
-        {
-          url: '/background/file',
-          title: '我的文件',
-          icon: 'el-icon-setting',
-          children: [
-            {
-              url: '/background/file/list',
-              title: '文件列表',
-              icon: 'el-icon-setting'
-            },
-            {
-              url: '/background/file/image',
-              title: '图片列表',
-              icon: 'el-icon-setting'
-            }
-          ]
-        },
-        {
-          url: '/background/site',
-          title: '站点配置',
-          icon: 'el-icon-setting',
-          children: [
-            /* {
-              url: '/background/site/store',
-              title: '存储配置',
-              icon: 'el-icon-setting'
-            },*/
-            {
-              url: '/background/site/notify',
-              title: '通知配置',
-              icon: 'el-icon-setting'
-            },
-            /* {
-              url: '/background/site/registry',
-              title: '注册配置',
-              icon: 'el-icon-setting'
-            },*/
-            {
-              url: '/background/site/category',
-              title: '站点分区',
-              icon: 'el-icon-setting'
-            }
-          ]
-        },
-        {
-          url: '/background/admin',
-          title: '后台管理',
-          icon: 'el-icon-user-solid',
-          children: [
-            {
-              url: '/background/admin/charge',
-              title: '充值请求',
-              icon: 'el-icon-user-solid'
-            },
-            {
-              url: '/background/admin/user',
-              title: '用户管理',
-              icon: 'el-icon-user-solid'
-            },
-            {
-              url: '/background/admin/video',
-              title: '视频管理',
-              icon: 'el-icon-user-solid'
-            },
-            {
-              url: '/background/admin/avatar',
-              title: '用户头像',
-              icon: 'el-icon-user-solid'
-            }
-          ]
-        },
-        {
-          url: '/background/backend',
-          title: '后端系统',
-          icon: 'el-icon-loading',
-          children: [
-            {
-              url: '/background/backend/gateway',
-              title: '网关',
-              icon: 'el-icon-loading'
-            },
-            {
-              url: '/background/backend/dubbo_service',
-              title: 'Dubbo服务',
-              icon: 'el-icon-loading'
-            },
-            {
-              url: '/background/backend/springcloud_service',
-              title: 'SpringCloud服务',
-              icon: 'el-icon-loading'
-            },
-            {
-              url: '/background/backend/access_log',
+      if (this.devops) {
+        this.menuList = [
+          {
+            url: '/bg/user',
+            title: '我的',
+            icon: 'el-icon-user',
+            children: [
+              {
+                url: '/bg/user/profile',
+                title: '我的资料',
+                icon: 'el-icon-user'
+              },
+              {
+                url: '/bg/user/record',
+                title: '登入记录',
+                icon: 'el-icon-user'
+              },
+              {
+                url: '/bg/user/message',
+                title: '我的消息',
+                icon: 'el-icon-user'
+              }
+            ]
+          },
+          {
+            url: '/bg/machine',
+            title: '机器',
+            icon: 'el-icon-s-data',
+            children: [
+              {
+                url: '/bg/machine/host',
+                title: '机器节点',
+                icon: 'el-icon-s-data'
+              },
+              {
+                url: '/bg/machine/aliyun_key',
+                title: '阿里云帐号',
+                icon: 'el-icon-s-data'
+              }
+            ]
+          },
+          {
+            url: '/bg/build',
+            title: '构建配置',
+            icon: 'el-icon-film',
+            children: [
+              {
+                url: '/bg/build/dir',
+                title: '构建目录',
+                icon: 'el-icon-film'
+              },
+              {
+                url: '/bg/build/repo_auth',
+                title: '仓库认证',
+                icon: 'el-icon-film'
+              },
+              {
+                url: '/bg/build/compiler',
+                title: '编译器',
+                icon: 'el-icon-film'
+              },
+              {
+                url: '/bg/build/docker_registry',
+                title: 'docker 仓库',
+                icon: 'el-icon-files'
+              },
+              {
+                url: '/bg/build/packer',
+                title: '应用打包',
+                icon: 'el-icon-files'
+              }
+            ]
+          },
+          {
+            url: '/bg/app',
+            title: '应用',
+            icon: 'el-icon-files',
+            children: [
+              {
+                url: '/bg/app/config',
+                title: '应用配置',
+                icon: 'el-icon-files'
+              },
+              {
+                url: '/bg/app/bd',
+                title: '构建部署',
+                icon: 'el-icon-files'
+              },
+              {
+                url: '/bg/app/stat',
+                title: '运行状态',
+                icon: 'el-icon-files'
+              }
+            ]
+          },
+          {
+            url: '/bg/sys',
+            title: '系统',
+            icon: 'el-icon-user-solid',
+            children: [
+              {
+                url: '/bg/sys/site',
+                title: '站点配置',
+                icon: 'el-icon-user-solid'
+              },
+              {
+                url: '/bg/sys/webhook',
+                title: 'webhook通知',
+                icon: 'el-icon-user-solid'
+              }/*,
+            {
+              url: '/bg/sys/access_log',
               title: '访问日志',
               title: '访问日志',
-              icon: 'el-icon-loading'
+              icon: 'el-icon-user-solid'
             },
             },
             {
             {
-              url: '/background/backend/runtime_log',
+              url: '/bg/sys/runtime_log',
               title: '运行日志',
               title: '运行日志',
-              icon: 'el-icon-loading'
+              icon: 'el-icon-user-solid'
             },
             },
             {
             {
-              url: '/background/backend/realtime_log',
+              url: '/bg/sys/realtime_log',
               title: '实时日志',
               title: '实时日志',
-              icon: 'el-icon-loading'
-            }
-          ]
-        }
-      ]
+              icon: 'el-icon-user-solid'
+            }*/
+            ]
+          },
+          {
+            url: '/bg/rbac',
+            title: 'RBAC',
+            icon: 'el-icon-loading',
+            children: [
+              {
+                url: '/bg/rbac/menu',
+                title: '资源管理',
+                icon: 'el-icon-loading'
+              },
+              {
+                url: '/bg/rbac/role',
+                title: '角色管理',
+                icon: 'el-icon-loading'
+              },
+              {
+                url: '/bg/rbac/user',
+                title: '用户管理',
+                icon: 'el-icon-loading'
+              }
+            ]
+          }
+        ]
+      } else {
+        this.menuList = [
+          {
+            url: '/bg/account',
+            title: '我的帐号',
+            icon: 'el-icon-user',
+            children: [
+              {
+                url: '/bg/account/profile',
+                title: '个人资料',
+                icon: 'el-icon-user'
+              },
+              {
+                url: '/bg/account/record',
+                title: '登入记录',
+                icon: 'el-icon-user'
+              },
+              {
+                url: '/bg/account/oauth',
+                title: 'OAuth应用',
+                icon: 'el-icon-user'
+              }
+            ]
+          },
+          {
+            url: '/bg/my',
+            title: '我的',
+            icon: 'el-icon-s-data',
+            children: [
+              {
+                url: '/bg/my/message',
+                title: '我的消息',
+                icon: 'el-icon-s-data'
+              },
+              {
+                url: '/bg/my/wallet',
+                title: '我的钱包',
+                icon: 'el-icon-s-data'
+              },
+              {
+                url: '/bg/my/vip',
+                title: '我的会员',
+                icon: 'el-icon-s-data'
+              },
+              {
+                url: '/bg/my/contact',
+                title: '联系人',
+                icon: 'el-icon-s-data'
+              },
+              {
+                url: '/bg/my/album',
+                title: '收藏夹',
+                icon: 'el-icon-s-data'
+              },
+              {
+                url: '/bg/my/history',
+                title: '历史记录',
+                icon: 'el-icon-s-data'
+              },
+              {
+                url: '/bg/my/rcmd',
+                title: '推荐设置',
+                icon: 'el-icon-s-data'
+              },
+              {
+                url: '/bg/my/device',
+                title: '我的设备',
+                icon: 'el-icon-s-data'
+              }
+            ]
+          },
+          {
+            url: '/bg/post',
+            title: '我的稿件',
+            icon: 'el-icon-film',
+            children: [
+              {
+                url: '/bg/post/video',
+                title: '视频稿件',
+                icon: 'el-icon-film'
+              },
+              {
+                url: '/bg/post/image',
+                title: '相册稿件',
+                icon: 'el-icon-film'
+              },
+              {
+                url: '/bg/post/article',
+                title: '文章稿件',
+                icon: 'el-icon-film'
+              }
+            ]
+          },
+          {
+            url: '/bg/oss',
+            title: '存储系统',
+            icon: 'el-icon-files',
+            children: [
+              {
+                url: '/bg/oss/store_node',
+                title: '存储节点',
+                icon: 'el-icon-files'
+              },
+              {
+                url: '/bg/oss/user_node',
+                title: '我的节点',
+                icon: 'el-icon-files'
+              },
+              {
+                url: '/bg/oss/upload_channel',
+                title: '上传通道',
+                icon: 'el-icon-files'
+              },
+              {
+                url: '/bg/oss/object',
+                title: '对象列表',
+                icon: 'el-icon-files'
+              }
+            ]
+          },
+          {
+            url: '/bg/blog',
+            title: '我的博客',
+            icon: 'el-icon-files',
+            children: [
+              {
+                url: '/bg/blog/category',
+                title: '分类管理',
+                icon: 'el-icon-files'
+              },
+              {
+                url: '/bg/blog/post',
+                title: '文章管理',
+                icon: 'el-icon-files'
+              },
+              {
+                url: '/bg/blog/question',
+                title: '面试题',
+                icon: 'el-icon-files'
+              }
+            ]
+          },
+          {
+            url: '/bg/file',
+            title: '我的文件',
+            icon: 'el-icon-setting',
+            children: [
+              {
+                url: '/bg/file/list',
+                title: '文件列表',
+                icon: 'el-icon-setting'
+              },
+              {
+                url: '/bg/file/image',
+                title: '图片列表',
+                icon: 'el-icon-setting'
+              }
+            ]
+          },
+          {
+            url: '/bg/site',
+            title: '站点配置',
+            icon: 'el-icon-setting',
+            children: [
+              /* {
+                url: '/bg/site/store',
+                title: '存储配置',
+                icon: 'el-icon-setting'
+              },*/
+              {
+                url: '/bg/site/notify',
+                title: '通知配置',
+                icon: 'el-icon-setting'
+              },
+              /* {
+                url: '/bg/site/registry',
+                title: '注册配置',
+                icon: 'el-icon-setting'
+              },*/
+              {
+                url: '/bg/site/category',
+                title: '站点分区',
+                icon: 'el-icon-setting'
+              }
+            ]
+          },
+          {
+            url: '/bg/admin',
+            title: '后台管理',
+            icon: 'el-icon-user-solid',
+            children: [
+              {
+                url: '/bg/admin/charge',
+                title: '充值请求',
+                icon: 'el-icon-user-solid'
+              },
+              {
+                url: '/bg/admin/user',
+                title: '用户管理',
+                icon: 'el-icon-user-solid'
+              },
+              {
+                url: '/bg/admin/video',
+                title: '视频管理',
+                icon: 'el-icon-user-solid'
+              },
+              {
+                url: '/bg/admin/avatar',
+                title: '用户头像',
+                icon: 'el-icon-user-solid'
+              }
+            ]
+          },
+          {
+            url: '/bg/backend',
+            title: '后端系统',
+            icon: 'el-icon-loading',
+            children: [
+              {
+                url: '/bg/backend/gateway',
+                title: '网关',
+                icon: 'el-icon-loading'
+              },
+              {
+                url: '/bg/backend/dubbo_service',
+                title: 'Dubbo服务',
+                icon: 'el-icon-loading'
+              },
+              {
+                url: '/bg/backend/springcloud_service',
+                title: 'SpringCloud服务',
+                icon: 'el-icon-loading'
+              },
+              {
+                url: '/bg/backend/access_log',
+                title: '访问日志',
+                icon: 'el-icon-loading'
+              },
+              {
+                url: '/bg/backend/runtime_log',
+                title: '运行日志',
+                icon: 'el-icon-loading'
+              },
+              {
+                url: '/bg/backend/realtime_log',
+                title: '实时日志',
+                icon: 'el-icon-loading'
+              }
+            ]
+          }
+        ]
+      }
     }
     }
   }
   }
 }
 }

+ 1 - 1
src/views/admin/TopNav.vue

@@ -12,7 +12,7 @@
       @click="doToggle()"
       @click="doToggle()"
     />
     />
     <el-submenu index="2" class="submenu">
     <el-submenu index="2" class="submenu">
-      <template slot="title">{{ user.screenName }}</template>
+      <template slot="title">{{ user.username }}</template>
       <el-menu-item index="2-1" @click="backToHome">
       <el-menu-item index="2-1" @click="backToHome">
         <i class="el-icon-s-home" />
         <i class="el-icon-s-home" />
         <span slot="title">回到主站</span>
         <span slot="title">回到主站</span>

+ 1 - 1
src/views/blog/BlogCategory.vue

@@ -156,7 +156,7 @@ export default {
     },
     },
     onSelectChange() {
     onSelectChange() {
       this.$router.push({
       this.$router.push({
-        path: '/background/blog/category',
+        path: '/bg/blog/category',
         query: this.queryInfo
         query: this.queryInfo
       })
       })
       this.getData()
       this.getData()

+ 2 - 2
src/views/blog/BlogPost.vue

@@ -273,7 +273,7 @@ export default {
     handleCurrentChange(pageNumber) {
     handleCurrentChange(pageNumber) {
       this.queryInfo.pn = pageNumber
       this.queryInfo.pn = pageNumber
       this.$router.push({
       this.$router.push({
-        path: '/background/blog/post',
+        path: '/bg/blog/post',
         query: this.queryInfo
         query: this.queryInfo
       })
       })
       this.getData()
       this.getData()
@@ -352,7 +352,7 @@ export default {
       this.currentPage = 1
       this.currentPage = 1
       this.queryInfo.pn = 1
       this.queryInfo.pn = 1
       this.$router.push({
       this.$router.push({
-        path: '/background/blog/post',
+        path: '/bg/blog/post',
         query: this.queryInfo
         query: this.queryInfo
       })
       })
       this.getData()
       this.getData()

+ 2 - 2
src/views/blog/BlogQuestion.vue

@@ -164,7 +164,7 @@ export default {
     handleCurrentChange(pageNumber) {
     handleCurrentChange(pageNumber) {
       this.queryInfo.pn = pageNumber
       this.queryInfo.pn = pageNumber
       this.$router.push({
       this.$router.push({
-        path: '/background/blog/question',
+        path: '/bg/blog/question',
         query: this.queryInfo
         query: this.queryInfo
       })
       })
       this.getData()
       this.getData()
@@ -214,7 +214,7 @@ export default {
       this.currentPage = 1
       this.currentPage = 1
       this.queryInfo.pn = 1
       this.queryInfo.pn = 1
       this.$router.push({
       this.$router.push({
-        path: '/background/blog/question',
+        path: '/bg/blog/question',
         query: this.queryInfo
         query: this.queryInfo
       })
       })
       this.getData()
       this.getData()

+ 0 - 75
src/views/devops/Background.vue

@@ -1,75 +0,0 @@
-<template>
-  <el-container class-name="main-container">
-    <el-aside :class="asideClass">
-      <LeftAside />
-    </el-aside>
-    <el-container>
-      <el-header class-name="main-header">
-        <TopNav />
-      </el-header>
-      <el-main class-name="main-center">
-        <router-view />
-      </el-main>
-    </el-container>
-  </el-container>
-</template>
-
-<script>
-import TopNav from '@/views/devops/TopNav.vue'
-import LeftAside from '@/views/devops/LeftAside.vue'
-
-export default {
-  name: 'Background',
-  components: {
-    TopNav,
-    LeftAside
-  },
-  data() {
-    return {
-      collapsed: false
-    }
-  },
-  computed: { // 计算属性
-    asideClass() { // 如果collapsed属性为true就展开不样式 反之就展开样式
-      return this.collapsed ? 'main-aside-collapsed' : 'main-aside'
-    }
-  },
-  created() { // 钩子函数
-    this.$root.Bus.$on('HandleSideMenu', value => {
-      this.collapsed = value
-    })
-  },
-  methods: {
-  }
-}
-</script>
-
-<style scoped>
-.main-container {
-  height: 100%;
-  width: 100%;
-  box-sizing: border-box;
-}
-
-/* 不展开样式*/
-.main-aside-collapsed {
-  /* 在CSS中,通过对某一样式声明! important ,可以更改默认的CSS样式优先级规则,使该条样式属性声明具有最高优先级 */
-  width: 64px !important;
-  height: 100%;
-  background-color: #334157;
-  margin: 0px;
-}
-
-/* 展开样式*/
-.main-aside {
-  width: 240px !important;
-  height: 100%;
-  background-color: #334157;
-  margin: 0px;
-}
-
-.main-header, .main-center {
-  padding: 0px;
-  border-left: 2px solid #333;
-}
-</style>

+ 103 - 92
src/views/devops/Dashboard.vue

@@ -1,99 +1,104 @@
 <template>
 <template>
   <el-container>
   <el-container>
     <el-main class="movie-list">
     <el-main class="movie-list">
-      <el-col :md="12" style="padding-right: 5px; padding-left: 5px; padding-bottom: 5px">
-        <el-card class="box-card">
-          <div slot="header" class="clearfix">
-            <span>机器节点</span>
-          </div>
-          <div class="text item">
-            <el-table
-              :data="machineStatList"
-              style="width: 100%"
-            >
-              <el-table-column
-                prop="env"
-                label="环境"
-              />
-              <el-table-column
-                prop="total"
-                label="总数"
-              />
-              <el-table-column
-                prop="onlineCount"
-                label="在线"
+      <div v-if="devops">
+        <el-col :md="12" style="padding-right: 5px; padding-left: 5px; padding-bottom: 5px">
+          <el-card class="box-card">
+            <div slot="header" class="clearfix">
+              <span>机器节点</span>
+            </div>
+            <div class="text item">
+              <el-table
+                :data="machineStatList"
+                style="width: 100%"
               >
               >
-                <template slot-scope="scope">
-                  <span style="color: green">{{ scope.row.onlineCount }}</span>
-                </template>
-              </el-table-column>
-              <el-table-column
-                prop="offlineCount"
-                label="离线"
-              >
-                <template slot-scope="scope">
-                  <span style="color: red">{{ scope.row.offlineCount }}</span>
-                </template>
-              </el-table-column>
-            </el-table>
-          </div>
-        </el-card>
-      </el-col>
-      <el-col :md="12" style="padding-right: 5px; padding-left: 5px; padding-bottom: 5px">
-        <el-card class="box-card">
-          <div slot="header" class="clearfix">
-            <span>系统信息</span>
-          </div>
-          <div class="text item">
-            <el-descriptions v-if="sysInfo !== null" class="margin-top" :column="1" border>
-              <el-descriptions-item>
-                <template slot="label">
-                  <i class="el-icon-user" />
-                  应用版本
-                </template>
-                <a target="_blank" :href="`https://git.reghao.cn/reghao/bnt/commit/${sysInfo.commitId}`" style="text-decoration-line: none">
-                  {{ sysInfo.commitId }}
-                </a>
-              </el-descriptions-item>
-              <el-descriptions-item>
-                <template slot="label">
-                  <i class="el-icon-mobile-phone" />
-                  机器地址
-                </template>
-                {{ sysInfo.ipv4 }}
-              </el-descriptions-item>
-              <el-descriptions-item>
-                <template slot="label">
-                  <i class="el-icon-location-outline" />
-                  操作系统
-                </template>
-                {{ sysInfo.osInfo }}
-              </el-descriptions-item>
-              <el-descriptions-item>
-                <template slot="label">
-                  <i class="el-icon-tickets" />
-                  JVM
-                </template>
-                {{ sysInfo.jvmInfo }}
-              </el-descriptions-item>
-              <el-descriptions-item>
-                <template slot="label">
-                  <i class="el-icon-office-building" />
-                  启动时间
-                </template>
-                {{ sysInfo.startAt }}
-              </el-descriptions-item>
-              <el-descriptions-item>
-                <template slot="label">
-                  <i class="el-icon-office-building" />
-                  PID
-                </template>
-                {{ sysInfo.pid }}
-              </el-descriptions-item>
-            </el-descriptions>
-          </div>
-        </el-card>
-      </el-col>
+                <el-table-column
+                  prop="env"
+                  label="环境"
+                />
+                <el-table-column
+                  prop="total"
+                  label="总数"
+                />
+                <el-table-column
+                  prop="onlineCount"
+                  label="在线"
+                >
+                  <template slot-scope="scope">
+                    <span style="color: green">{{ scope.row.onlineCount }}</span>
+                  </template>
+                </el-table-column>
+                <el-table-column
+                  prop="offlineCount"
+                  label="离线"
+                >
+                  <template slot-scope="scope">
+                    <span style="color: red">{{ scope.row.offlineCount }}</span>
+                  </template>
+                </el-table-column>
+              </el-table>
+            </div>
+          </el-card>
+        </el-col>
+        <el-col :md="12" style="padding-right: 5px; padding-left: 5px; padding-bottom: 5px">
+          <el-card class="box-card">
+            <div slot="header" class="clearfix">
+              <span>系统信息</span>
+            </div>
+            <div class="text item">
+              <el-descriptions v-if="sysInfo !== null" class="margin-top" :column="1" border>
+                <el-descriptions-item>
+                  <template slot="label">
+                    <i class="el-icon-user" />
+                    应用版本
+                  </template>
+                  <a target="_blank" :href="`https://git.reghao.cn/reghao/bnt/commit/${sysInfo.commitId}`" style="text-decoration-line: none">
+                    {{ sysInfo.commitId }}
+                  </a>
+                </el-descriptions-item>
+                <el-descriptions-item>
+                  <template slot="label">
+                    <i class="el-icon-mobile-phone" />
+                    机器地址
+                  </template>
+                  {{ sysInfo.ipv4 }}
+                </el-descriptions-item>
+                <el-descriptions-item>
+                  <template slot="label">
+                    <i class="el-icon-location-outline" />
+                    操作系统
+                  </template>
+                  {{ sysInfo.osInfo }}
+                </el-descriptions-item>
+                <el-descriptions-item>
+                  <template slot="label">
+                    <i class="el-icon-tickets" />
+                    JVM
+                  </template>
+                  {{ sysInfo.jvmInfo }}
+                </el-descriptions-item>
+                <el-descriptions-item>
+                  <template slot="label">
+                    <i class="el-icon-office-building" />
+                    启动时间
+                  </template>
+                  {{ sysInfo.startAt }}
+                </el-descriptions-item>
+                <el-descriptions-item>
+                  <template slot="label">
+                    <i class="el-icon-office-building" />
+                    PID
+                  </template>
+                  {{ sysInfo.pid }}
+                </el-descriptions-item>
+              </el-descriptions>
+            </div>
+          </el-card>
+        </el-col>
+      </div>
+      <div v-else>
+        <h3>Dashboard</h3>
+      </div>
     </el-main>
     </el-main>
   </el-container>
   </el-container>
 </template>
 </template>
@@ -105,6 +110,7 @@ export default {
   name: 'Dashboard',
   name: 'Dashboard',
   data() {
   data() {
     return {
     return {
+      devops: true,
       machineStatList: [],
       machineStatList: [],
       sysInfo: null
       sysInfo: null
     }
     }
@@ -115,6 +121,11 @@ export default {
   },
   },
   methods: {
   methods: {
     getData() {
     getData() {
+      if (this.devops) {
+        this.getDevopsDashboard()
+      }
+    },
+    getDevopsDashboard() {
       getDashboard().then(resp => {
       getDashboard().then(resp => {
         if (resp.code === 0) {
         if (resp.code === 0) {
           this.sysInfo = resp.data.sysInfo
           this.sysInfo = resp.data.sysInfo

+ 0 - 243
src/views/devops/LeftAside.vue

@@ -1,243 +0,0 @@
-<template>
-  <el-menu
-    :default-active="this.$route.path"
-    router
-    class="el-menu-vertical-demo"
-    background-color="#334157"
-    text-color="#fff"
-    active-text-color="#ffd04b"
-    :unique-opened="true"
-    :collapse="collapsed"
-    :collapse-transition="collapseTransition"
-  >
-    <div class="logobox">
-      <a href="/devops" style="text-decoration-line: none">
-        <img class="logoimg" src="@/assets/img/logo.png" alt="">
-      </a>
-    </div>
-    <el-submenu v-for="(item, index) in menuList" :key="index" :index="item.url">
-      <template slot="title">
-        <i :class="item.icon" />
-        <span>{{ item.title }}</span>
-      </template>
-      <el-menu-item-group>
-        <el-menu-item v-for="(child, index0) in item.children" :key="index0" :index="child.url">
-          <i :class="child.icon" />
-          <span slot="title">{{ child.title }}</span>
-        </el-menu-item>
-      </el-menu-item-group>
-    </el-submenu>
-  </el-menu>
-</template>
-
-<script>
-export default {
-  name: 'LeftAside',
-  data() {
-    return {
-      collapsed: false,
-      collapseTransition: false,
-      menuList: []
-    }
-  },
-  mounted() {
-    this.initSideMenu()
-  },
-  created() {
-    // 钩子函数
-    this.$root.Bus.$on('HandleSideMenu', value => {
-      this.collapsed = value
-    })
-  },
-  methods: {
-    initSideMenu() {
-      this.menuList = [
-        {
-          url: '/devops/user',
-          title: '我的',
-          icon: 'el-icon-user',
-          children: [
-            {
-              url: '/devops/user/profile',
-              title: '我的资料',
-              icon: 'el-icon-user'
-            },
-            {
-              url: '/devops/user/record',
-              title: '登入记录',
-              icon: 'el-icon-user'
-            },
-            {
-              url: '/devops/user/message',
-              title: '我的消息',
-              icon: 'el-icon-user'
-            }
-          ]
-        },
-        {
-          url: '/devops/machine',
-          title: '机器',
-          icon: 'el-icon-s-data',
-          children: [
-            {
-              url: '/devops/machine/host',
-              title: '机器节点',
-              icon: 'el-icon-s-data'
-            },
-            {
-              url: '/devops/machine/aliyun_key',
-              title: '阿里云帐号',
-              icon: 'el-icon-s-data'
-            }
-          ]
-        },
-        {
-          url: '/devops/build',
-          title: '构建配置',
-          icon: 'el-icon-film',
-          children: [
-            {
-              url: '/devops/build/dir',
-              title: '构建目录',
-              icon: 'el-icon-film'
-            },
-            {
-              url: '/devops/build/repo_auth',
-              title: '仓库认证',
-              icon: 'el-icon-film'
-            },
-            {
-              url: '/devops/build/compiler',
-              title: '编译器',
-              icon: 'el-icon-film'
-            },
-            {
-              url: '/devops/build/docker_registry',
-              title: 'docker 仓库',
-              icon: 'el-icon-files'
-            },
-            {
-              url: '/devops/build/packer',
-              title: '应用打包',
-              icon: 'el-icon-files'
-            }
-          ]
-        },
-        {
-          url: '/devops/app',
-          title: '应用',
-          icon: 'el-icon-files',
-          children: [
-            {
-              url: '/devops/app/config',
-              title: '应用配置',
-              icon: 'el-icon-files'
-            },
-            {
-              url: '/devops/app/bd',
-              title: '构建部署',
-              icon: 'el-icon-files'
-            },
-            {
-              url: '/devops/app/stat',
-              title: '运行状态',
-              icon: 'el-icon-files'
-            }
-          ]
-        },
-        {
-          url: '/devops/sys',
-          title: '系统',
-          icon: 'el-icon-user-solid',
-          children: [
-            {
-              url: '/devops/sys/site',
-              title: '站点配置',
-              icon: 'el-icon-user-solid'
-            },
-            {
-              url: '/devops/sys/webhook',
-              title: 'webhook通知',
-              icon: 'el-icon-user-solid'
-            }/*,
-            {
-              url: '/devops/sys/access_log',
-              title: '访问日志',
-              icon: 'el-icon-user-solid'
-            },
-            {
-              url: '/devops/sys/runtime_log',
-              title: '运行日志',
-              icon: 'el-icon-user-solid'
-            },
-            {
-              url: '/devops/sys/realtime_log',
-              title: '实时日志',
-              icon: 'el-icon-user-solid'
-            }*/
-          ]
-        },
-        {
-          url: '/devops/rbac',
-          title: 'RBAC',
-          icon: 'el-icon-loading',
-          children: [
-            {
-              url: '/devops/rbac/menu',
-              title: '资源管理',
-              icon: 'el-icon-loading'
-            },
-            {
-              url: '/devops/rbac/role',
-              title: '角色管理',
-              icon: 'el-icon-loading'
-            },
-            {
-              url: '/devops/rbac/user',
-              title: '用户管理',
-              icon: 'el-icon-loading'
-            }
-          ]
-        }
-      ]
-    }
-  }
-}
-</script>
-
-<style>
-.el-menu-vertical-demo:not(.el-menu--collapse) {
-  width: 180px;
-  min-height: 720px;
-}
-
-.el-menu-vertical-demo:not(.el-menu--collapse) {
-  border: none;
-  text-align: left;
-}
-
-.el-menu-item-group__title {
-  padding: 0px;
-}
-
-.el-menu-bg {
-  background-color: #1f2d3d !important;
-}
-
-.el-menu {
-  border: none;
-}
-
-.logobox {
-  height: 40px;
-  line-height: 40px;
-  color: #9d9d9d;
-  font-size: 20px;
-  text-align: center;
-  padding: 20px 0px;
-}
-
-.logoimg {
-  height: 40px;
-}
-</style>

+ 0 - 78
src/views/devops/TopNav.vue

@@ -1,78 +0,0 @@
-<template>
-  <el-menu
-    class="el-menu-demo"
-    mode="horizontal"
-    background-color="#334157"
-    text-color="#fff"
-    active-text-color="#fff"
-  >
-    <el-button
-      class="button_icon"
-      :icon="collapsed ? 'el-icon-s-fold' : 'el-icon-s-unfold'"
-      @click="doToggle()"
-    />
-    <el-submenu index="2" class="submenu">
-      <template slot="title">{{ user.username }}</template>
-      <el-menu-item index="2-1" @click="backToHome">
-        <i class="el-icon-s-home" />
-        <span slot="title">回到主站</span>
-      </el-menu-item>
-      <el-menu-item index="2-3" @click.native="goToLogout">
-        <i class="el-icon-close" />
-        <span slot="title">登出</span>
-      </el-menu-item>
-    </el-submenu>
-  </el-menu>
-</template>
-
-<script>
-import { userMixin } from 'assets/js/mixin'
-import { getAuthedUser } from '@/utils/auth'
-
-export default {
-  name: 'TopNav',
-  mixins: [userMixin],
-  data() {
-    return {
-      user: null,
-      collapsed: false,
-      imgshow: require('@/assets/img/logo.png'),
-      imgsq: require('@/assets/img/logo.png')
-    }
-  },
-  created() {
-    this.user = getAuthedUser()
-  },
-  methods: {
-    doToggle() {
-      // 主要控制 collapsed 为 true 或 false
-      this.collapsed = !this.collapsed
-      this.$root.Bus.$emit('HandleSideMenu', this.collapsed)
-    },
-    backToHome() {
-      const path = '/'
-      if (this.$route.path === path) {
-        this.$router.go(0)
-        return
-      }
-      this.$router.push(path)
-    }
-  }
-}
-</script>
-
-<style scoped>
-.el-menu-vertical-demo:not(.el-menu--collapse) {
-  border: none;
-}
-
-.submenu {
-  float: right;
-}
-
-.button_icon {
-  height: 60px;
-  background-color: transparent;
-  border: none;
-}
-</style>

+ 2 - 2
src/views/devops/app/AppConfig.vue

@@ -624,7 +624,7 @@ export default {
     handleCurrentChange(pageNumber) {
     handleCurrentChange(pageNumber) {
       this.queryInfo.pn = pageNumber
       this.queryInfo.pn = pageNumber
       this.$router.push({
       this.$router.push({
-        path: '/devops/app/config',
+        path: '/bg/app/config',
         query: this.queryInfo
         query: this.queryInfo
       })
       })
       this.getData()
       this.getData()
@@ -768,7 +768,7 @@ export default {
       this.currentPage = 1
       this.currentPage = 1
       this.queryInfo.pn = 1
       this.queryInfo.pn = 1
       this.$router.push({
       this.$router.push({
-        path: '/devops/app/config',
+        path: '/bg/app/config',
         query: this.queryInfo
         query: this.queryInfo
       })
       })
       this.getData()
       this.getData()

+ 2 - 2
src/views/devops/app/AppStat.vue

@@ -246,7 +246,7 @@ export default {
     handleCurrentChange(pageNumber) {
     handleCurrentChange(pageNumber) {
       this.queryInfo.pn = pageNumber
       this.queryInfo.pn = pageNumber
       this.$router.push({
       this.$router.push({
-        path: '/devops/app/stat',
+        path: '/bg/app/stat',
         query: this.queryInfo
         query: this.queryInfo
       })
       })
       this.getData()
       this.getData()
@@ -323,7 +323,7 @@ export default {
       this.currentPage = 1
       this.currentPage = 1
       this.queryInfo.pn = 1
       this.queryInfo.pn = 1
       this.$router.push({
       this.$router.push({
-        path: '/devops/app/stat',
+        path: '/bg/app/stat',
         query: this.queryInfo
         query: this.queryInfo
       })
       })
       this.getData()
       this.getData()

+ 2 - 2
src/views/devops/app/BuildDeploy.vue

@@ -612,7 +612,7 @@ export default {
     handleCurrentChange(pageNumber) {
     handleCurrentChange(pageNumber) {
       this.queryInfo.pn = pageNumber
       this.queryInfo.pn = pageNumber
       this.$router.push({
       this.$router.push({
-        path: '/devops/app/bd',
+        path: '/bg/app/bd',
         query: this.queryInfo
         query: this.queryInfo
       })
       })
       this.getData()
       this.getData()
@@ -823,7 +823,7 @@ export default {
       this.currentPage = 1
       this.currentPage = 1
       this.queryInfo.pn = 1
       this.queryInfo.pn = 1
       this.$router.push({
       this.$router.push({
-        path: '/devops/app/bd',
+        path: '/bg/app/bd',
         query: this.queryInfo
         query: this.queryInfo
       })
       })
       this.getData()
       this.getData()

+ 2 - 2
src/views/devops/machine/MachineHost.vue

@@ -238,7 +238,7 @@ export default {
     handleCurrentChange(pageNumber) {
     handleCurrentChange(pageNumber) {
       this.queryInfo.pn = pageNumber
       this.queryInfo.pn = pageNumber
       this.$router.push({
       this.$router.push({
-        path: '/devops/machine/host',
+        path: '/bg/machine/host',
         query: this.queryInfo
         query: this.queryInfo
       })
       })
       this.getData()
       this.getData()
@@ -293,7 +293,7 @@ export default {
       this.currentPage = 1
       this.currentPage = 1
       this.queryInfo.pn = 1
       this.queryInfo.pn = 1
       this.$router.push({
       this.$router.push({
-        path: '/devops/machine/host',
+        path: '/bg/machine/host',
         query: this.queryInfo
         query: this.queryInfo
       })
       })
       this.getData()
       this.getData()

+ 1 - 1
src/views/devops/user/UserMessage.vue

@@ -99,7 +99,7 @@ export default {
     handleCurrentChange(pageNumber) {
     handleCurrentChange(pageNumber) {
       this.queryInfo.pn = pageNumber
       this.queryInfo.pn = pageNumber
       this.$router.push({
       this.$router.push({
-        path: '/devops/user/message',
+        path: '/bg/user/message',
         query: this.queryInfo
         query: this.queryInfo
       })
       })
       this.getData()
       this.getData()

+ 2 - 2
src/views/post/AlbumPost.vue

@@ -193,7 +193,7 @@ export default {
       this.currentPage = 1
       this.currentPage = 1
       this.getData()
       this.getData()
       this.$router.push({
       this.$router.push({
-        path: '/background/my/album',
+        path: '/bg/my/album',
         query: this.queryInfo
         query: this.queryInfo
       })
       })
     },
     },
@@ -202,7 +202,7 @@ export default {
       this.queryInfo.pn = pageNumber
       this.queryInfo.pn = pageNumber
       // this.getData()
       // this.getData()
       this.$router.push({
       this.$router.push({
-        path: '/background/my/album',
+        path: '/bg/my/album',
         query: this.queryInfo
         query: this.queryInfo
       })
       })
       // 回到顶部
       // 回到顶部

+ 1 - 1
src/views/post/ArticlePost.vue

@@ -159,7 +159,7 @@ export default {
       this.showEditScopeDialog = true
       this.showEditScopeDialog = true
     },
     },
     handleEdit(index, row) {
     handleEdit(index, row) {
-      const path = '/background/post/article/edit/' + row.articleId
+      const path = '/bg/post/article/edit/' + row.articleId
       this.$router.push(path)
       this.$router.push(path)
     },
     },
     handleDelete(index, row) {
     handleDelete(index, row) {

+ 1 - 1
src/views/post/ArticlePostEdit.vue

@@ -81,7 +81,7 @@ export default {
       this.form.content = value
       this.form.content = value
     },
     },
     onReturnArticle() {
     onReturnArticle() {
-      this.$router.push('/background/post/article')
+      this.$router.push('/bg/post/article')
     },
     },
     onUpdateArticleContent() {
     onUpdateArticleContent() {
       updateArticleContent(this.form).then(resp => {
       updateArticleContent(this.form).then(resp => {

+ 1 - 1
src/views/post/ArticlePostPublish.vue

@@ -53,7 +53,7 @@ export default {
             type: 'warning',
             type: 'warning',
             duration: 3000
             duration: 3000
           })
           })
-          this.$router.push('/background/post/article')
+          this.$router.push('/bg/post/article')
         } else {
         } else {
           this.$notify({
           this.$notify({
             title: '提示',
             title: '提示',

+ 1 - 1
src/views/post/ImagePost.vue

@@ -171,7 +171,7 @@ export default {
       })
       })
     },
     },
     handleEdit(index, row) {
     handleEdit(index, row) {
-      const path = '/background/post/image/edit/' + row.albumId
+      const path = '/bg/post/image/edit/' + row.albumId
       this.$router.push(path)
       this.$router.push(path)
     },
     },
     onCreateAlbum() {
     onCreateAlbum() {

+ 1 - 1
src/views/post/ImagePostEdit.vue

@@ -249,7 +249,7 @@ export default {
       })
       })
     },
     },
     onReturnAlbum() {
     onReturnAlbum() {
-      this.$router.push('/background/post/image')
+      this.$router.push('/bg/post/image')
     }
     }
   }
   }
 }
 }

+ 1 - 1
src/views/post/VideoPost.vue

@@ -325,7 +325,7 @@ export default {
       })
       })
     },
     },
     handleEdit(index, row) {
     handleEdit(index, row) {
-      const path = '/background/post/video/edit/' + row.videoId
+      const path = '/bg/post/video/edit/' + row.videoId
       this.$router.push(path)
       this.$router.push(path)
     },
     },
     handleDelete(index, row) {
     handleDelete(index, row) {

+ 1 - 1
src/views/post/VideoPostEdit.vue

@@ -288,7 +288,7 @@ export default {
     },
     },
     // ****************************************************************************************************************
     // ****************************************************************************************************************
     onReturnVideo() {
     onReturnVideo() {
-      this.$router.push('/background/post/video')
+      this.$router.push('/bg/post/video')
     },
     },
     onUpdateVideoInfo() {
     onUpdateVideoInfo() {
       updateVideoInfo(this.videoInfoForm).then(res => {
       updateVideoInfo(this.videoInfoForm).then(res => {