diff --git a/.gitignore b/.gitignore index 27b5fda..967ba21 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ node_modules/* package-lock.json -yarn.lock \ No newline at end of file +yarn.lock +dist/ +dist.tar.gz diff --git a/src/api/articleCategory.js b/src/api/articleCategory.js new file mode 100644 index 0000000..d01ab6b --- /dev/null +++ b/src/api/articleCategory.js @@ -0,0 +1,63 @@ +import service from '@/utils/request' + +// @Summary 获取分类树 +// @Produce application/json +// @Router /articleCategory/getCategoryTree [post] +export const getCategoryTree = () => { + return service({ + url: '/articleCategory/getCategoryTree', + method: 'post', + }) +} + +// @Summary 新增分类 +// @Produce application/json +// @Param menu Object +// @Router /articleCategory/addCategory [post] +export const addCategory = (data) => { + return service({ + url: '/articleCategory/addCategory', + method: 'post', + data + }) +} + +// @Summary 删除分类 +// @Produce application/json +// @Param ID int +// @Router /articleCategory/deleteCategory [post] +export const deleteCategory = (data) => { + return service({ + url: '/articleCategory/deleteCategory', + method: 'post', + data + }) +} + +// @Summary 修改分类 +// @Produce application/json +// @Param menu Object +// @Router /articleCategory/updateCategory [post] +export const updateCategory = (data) => { + return service({ + url: '/articleCategory/updateCategory', + method: 'post', + data + }) +} + +// @Tags 文章分类 +// @Summary 根据id获取分类 +// @Security ApiKeyAuth +// @accept application/json +// @Produce application/json +// @Param data body api.GetById true "根据id获取菜单" +// @Success 200 {string} json "{"success":true,"data":{},"msg":"获取成功"}" +// @Router /articleCategory/getCategoryById [post] +export const getCategoryById = (data) => { + return service({ + url: '/articleCategory/getCategoryById', + method: 'post', + data + }) +} diff --git a/src/assets/logo.png b/src/assets/logo.png new file mode 100644 index 0000000..6b4e433 Binary files /dev/null and b/src/assets/logo.png differ diff --git a/src/view/content/category/index.vue b/src/view/content/category/index.vue new file mode 100644 index 0000000..5deeaf9 --- /dev/null +++ b/src/view/content/category/index.vue @@ -0,0 +1,242 @@ + + + + diff --git a/src/view/dashboard/admin.vue b/src/view/dashboard/index.vue similarity index 100% rename from src/view/dashboard/admin.vue rename to src/view/dashboard/index.vue diff --git a/src/view/layout/index.vue b/src/view/layout/index.vue index 10b32fa..b95fba9 100644 --- a/src/view/layout/index.vue +++ b/src/view/layout/index.vue @@ -16,7 +16,7 @@
-
@@ -30,9 +26,6 @@ const handleReload = () => { reload.value = false }, 500) } -const toService = () => { - window.open('https://support.qq.com/product/371961') -}