update

parent 6f70d087
......@@ -318,12 +318,12 @@ export type Post = {
id: number;
name: string;
image: string;
category: string;
createBy: string;
createTime: string;
updateBy: string;
updateTime: string;
status: number;
category: string;
createBy?: string;
createTime?: string;
updateBy?: string;
updateTime?: string;
};
export type LanguageType = {
......@@ -361,3 +361,15 @@ export type PostDetailType = {
updateBy?: string;
updateTime?: string;
};
export type PostCategoryDetailType = {
id: number;
image: string;
status: number;
langs: LangType[];
posts: Post[];
createBy?: string;
createTime?: string;
updateBy?: string;
updateTime?: string;
};
import { defineComponent } from 'vue'
export default defineComponent({
// name: 'PageName'
})
\ No newline at end of file
<template>
<div>CategoryPost</div>
</template>
<script lang="ts" src="./CategoryPost.ts"></script>
......@@ -82,7 +82,7 @@
<template v-slot:body-cell-avatar="avatar">
<q-td style="padding: 0; height: 100%" class="flex flex-center">
<q-img
style="width: 7rem"
style="width: 7rem; height: 5rem"
fit="contain"
:ratio="16 / 9"
:src="`http://cms.vab.xteldev.com/file/upload/${avatar.row.avatar}`"
......
......@@ -13,6 +13,7 @@ export enum Pages {
customerRank = 'xep-hang-khach-hang',
field = 'linh-vuc-hoat-dong',
post = 'bai-viet',
postCategory = 'danh-muc-bai-viet',
}
const routes: RouteRecordRaw[] = [
......@@ -80,6 +81,11 @@ const routes: RouteRecordRaw[] = [
component: () => import('pages/bai-viet/index.vue'),
name: Pages.post,
},
{
path: 'danh-muc-bai-viet',
component: () => import('pages/danh-muc-bai-viet/index.vue'),
name: Pages.postCategory,
},
],
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment