diff --git a/src/api/main.js b/src/api/main.js new file mode 100644 index 00000000..f4e536fe --- /dev/null +++ b/src/api/main.js @@ -0,0 +1,12 @@ +import service from '@/utils/service' + +const mainApi = {} + +mainApi.version = () => { + return service({ + url: 'version', + method: 'get' + }) +} + +export default mainApi diff --git a/src/config/router.config.js b/src/config/router.config.js index a6e45d8e..31f6d0d5 100644 --- a/src/config/router.config.js +++ b/src/config/router.config.js @@ -188,7 +188,6 @@ export const asyncRouterMap = [ path: '/system/about', name: 'About', component: () => import('@/views/system/About'), - hidden: true, meta: { title: '关于 Halo', hiddenHeaderContent: false } } ]