Add main api

pull/22/head
johnniang 2019-06-12 23:35:34 +08:00
parent c17e9d89a6
commit 1f865b4577
2 changed files with 12 additions and 1 deletions

12
src/api/main.js Normal file
View File

@ -0,0 +1,12 @@
import service from '@/utils/service'
const mainApi = {}
mainApi.version = () => {
return service({
url: 'version',
method: 'get'
})
}
export default mainApi

View File

@ -188,7 +188,6 @@ export const asyncRouterMap = [
path: '/system/about',
name: 'About',
component: () => import('@/views/system/About'),
hidden: true,
meta: { title: '关于 Halo', hiddenHeaderContent: false }
}
]