mirror of
https://gitee.com/chu1204505056/vue-admin-beautiful.git
synced 2025-04-06 03:58:00 +08:00
精简依赖
This commit is contained in:
parent
ae05f9e519
commit
7082628a46
@ -1,42 +0,0 @@
|
|||||||
const { mock } = require("mockjs");
|
|
||||||
|
|
||||||
module.exports = [
|
|
||||||
{
|
|
||||||
url: "/goodsDetail/getList",
|
|
||||||
type: "post",
|
|
||||||
response(config) {
|
|
||||||
return {
|
|
||||||
code: 200,
|
|
||||||
msg: "success",
|
|
||||||
totalCount: 999,
|
|
||||||
data: mock({
|
|
||||||
"data|10": [
|
|
||||||
{
|
|
||||||
id: "@id",
|
|
||||||
},
|
|
||||||
],
|
|
||||||
}).data,
|
|
||||||
};
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
url: "/goodsDetail/doEdit",
|
|
||||||
type: "post",
|
|
||||||
response(config) {
|
|
||||||
return {
|
|
||||||
code: 200,
|
|
||||||
msg: "模拟保存成功",
|
|
||||||
};
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
url: "/goodsDetail/doDelete",
|
|
||||||
type: "post",
|
|
||||||
response(config) {
|
|
||||||
return {
|
|
||||||
code: 200,
|
|
||||||
msg: "模拟删除成功",
|
|
||||||
};
|
|
||||||
},
|
|
||||||
},
|
|
||||||
];
|
|
@ -319,14 +319,6 @@ const data = [
|
|||||||
title: "商品列表",
|
title: "商品列表",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: "goodsDetail",
|
|
||||||
name: "GoodsDetail",
|
|
||||||
component: "@/views/mall/goodsDetail/index",
|
|
||||||
meta: {
|
|
||||||
title: "商品详情",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -70,7 +70,6 @@
|
|||||||
"zx-verify": "^0.0.2"
|
"zx-verify": "^0.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/register": "^7.11.5",
|
|
||||||
"@vue/cli-plugin-babel": "^4.5.6",
|
"@vue/cli-plugin-babel": "^4.5.6",
|
||||||
"@vue/cli-plugin-eslint": "^4.5.6",
|
"@vue/cli-plugin-eslint": "^4.5.6",
|
||||||
"@vue/cli-plugin-router": "^4.5.6",
|
"@vue/cli-plugin-router": "^4.5.6",
|
||||||
@ -78,7 +77,6 @@
|
|||||||
"@vue/cli-service": "^4.5.6",
|
"@vue/cli-service": "^4.5.6",
|
||||||
"@vue/eslint-config-prettier": "^6.0.0",
|
"@vue/eslint-config-prettier": "^6.0.0",
|
||||||
"babel-eslint": "^10.1.0",
|
"babel-eslint": "^10.1.0",
|
||||||
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
||||||
"compression-webpack-plugin": "^6.0.2",
|
"compression-webpack-plugin": "^6.0.2",
|
||||||
"eslint": "^7.10.0",
|
"eslint": "^7.10.0",
|
||||||
"eslint-plugin-prettier": "^3.1.4",
|
"eslint-plugin-prettier": "^3.1.4",
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
import request from "@/utils/request";
|
|
||||||
|
|
||||||
export function getList(data) {
|
|
||||||
return request({
|
|
||||||
url: "/goodsDetail/getList",
|
|
||||||
method: "post",
|
|
||||||
data,
|
|
||||||
});
|
|
||||||
}
|
|
@ -124,6 +124,15 @@ export const asyncRoutes = [
|
|||||||
alwaysShow: true,
|
alwaysShow: true,
|
||||||
meta: { title: "组件", icon: "box-open" },
|
meta: { title: "组件", icon: "box-open" },
|
||||||
children: [
|
children: [
|
||||||
|
{
|
||||||
|
path: "permissions",
|
||||||
|
name: "Permission",
|
||||||
|
component: () => import("@/views/vab/permissions/index"),
|
||||||
|
meta: {
|
||||||
|
title: "角色权限",
|
||||||
|
permissions: ["admin", "editor"],
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path:
|
path:
|
||||||
"https://github.com/chuzhixin/vue-admin-beautiful?utm_source=gold_browser_extension",
|
"https://github.com/chuzhixin/vue-admin-beautiful?utm_source=gold_browser_extension",
|
||||||
@ -135,15 +144,6 @@ export const asyncRoutes = [
|
|||||||
badge: "New",
|
badge: "New",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: "permissions",
|
|
||||||
name: "Permission",
|
|
||||||
component: () => import("@/views/vab/permissions/index"),
|
|
||||||
meta: {
|
|
||||||
title: "权限控制",
|
|
||||||
permissions: ["admin", "editor"],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path: "icon",
|
path: "icon",
|
||||||
component: EmptyLayout,
|
component: EmptyLayout,
|
||||||
@ -395,14 +395,6 @@ export const asyncRoutes = [
|
|||||||
title: "商品列表",
|
title: "商品列表",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path: "goodsDetail",
|
|
||||||
name: "GoodsDetail",
|
|
||||||
component: () => import("@/views/mall/goodsDetail/index"),
|
|
||||||
meta: {
|
|
||||||
title: "商品详情",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
<template>
|
|
||||||
<div class="goodsDetail-container"></div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
export default {
|
|
||||||
name: "GoodsDetail",
|
|
||||||
data() {
|
|
||||||
return {};
|
|
||||||
},
|
|
||||||
created() {},
|
|
||||||
methods: {},
|
|
||||||
};
|
|
||||||
</script>
|
|
Loading…
x
Reference in New Issue
Block a user