From 7d2e069349375b17097362ce7bc54be41dd394d1 Mon Sep 17 00:00:00 2001 From: zhl Date: Mon, 19 Apr 2021 19:35:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=80=E4=BA=9B=E8=AF=AD?= =?UTF-8?q?=E6=B3=95=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/shop.ts | 3 +-- src/api/types.d.ts | 2 +- src/router/modules/shop.ts | 2 +- src/views/shop/edit.vue | 23 +++++++++-------------- src/views/shop/list.vue | 33 +++++++++++++++++---------------- 5 files changed, 29 insertions(+), 34 deletions(-) diff --git a/src/api/shop.ts b/src/api/shop.ts index 5033a70..ca6d92e 100644 --- a/src/api/shop.ts +++ b/src/api/shop.ts @@ -3,8 +3,7 @@ import { IShopData } from './types' export const defaultShopData: IShopData = { name: '', - id: '' - + _id: '' } export const getShops = (params: any) => diff --git a/src/api/types.d.ts b/src/api/types.d.ts index 04a6a68..f5fa6ec 100644 --- a/src/api/types.d.ts +++ b/src/api/types.d.ts @@ -42,7 +42,7 @@ export interface IQuestionData { } export interface IShopData { - id: string, + _id: string, name: string, createdAt?: Date } diff --git a/src/router/modules/shop.ts b/src/router/modules/shop.ts index e9d2369..fd68254 100644 --- a/src/router/modules/shop.ts +++ b/src/router/modules/shop.ts @@ -50,7 +50,7 @@ const shopRoutes: RouteConfig = { permissions: ['question:read'], icon: 'game' } - }, + } ] } diff --git a/src/views/shop/edit.vue b/src/views/shop/edit.vue index 3e880a3..345b672 100644 --- a/src/views/shop/edit.vue +++ b/src/views/shop/edit.vue @@ -51,7 +51,7 @@ -