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 @@ -