From bf31fd54d526d51dfc9a5dd9e7178b9c2a58599b Mon Sep 17 00:00:00 2001 From: Kar Date: Sat, 5 Nov 2022 19:29:50 +0530 Subject: [PATCH] documents page --- src/pages/documents/[id].vue | 89 +++++++++++++++++++++++++++++++++++ src/pages/documents/index.vue | 41 ++++++++++++++++ src/pages/notice/index.vue | 2 +- typed-router.d.ts | 2 + 4 files changed, 133 insertions(+), 1 deletion(-) create mode 100644 src/pages/documents/[id].vue create mode 100644 src/pages/documents/index.vue diff --git a/src/pages/documents/[id].vue b/src/pages/documents/[id].vue new file mode 100644 index 0000000..8d9b498 --- /dev/null +++ b/src/pages/documents/[id].vue @@ -0,0 +1,89 @@ + + + \ No newline at end of file diff --git a/src/pages/documents/index.vue b/src/pages/documents/index.vue new file mode 100644 index 0000000..8d631ee --- /dev/null +++ b/src/pages/documents/index.vue @@ -0,0 +1,41 @@ + + + \ No newline at end of file diff --git a/src/pages/notice/index.vue b/src/pages/notice/index.vue index 99569ca..2dd8044 100644 --- a/src/pages/notice/index.vue +++ b/src/pages/notice/index.vue @@ -32,7 +32,7 @@ .then(response => response.json()) .then(data => { this.page = data.data - console.log(data) + // console.log(data) this.isLoading = false }) } diff --git a/typed-router.d.ts b/typed-router.d.ts index a8345a6..1714847 100644 --- a/typed-router.d.ts +++ b/typed-router.d.ts @@ -39,6 +39,8 @@ declare module 'vue-router/auto/routes' { '/[...404]': RouteRecordInfo<'/[...404]', '/:404(.*)', { 404: ParamValue }, { 404: ParamValue }>, '/[id]': RouteRecordInfo<'/[id]', '/:id', { id: ParamValue }, { id: ParamValue }>, '/about': RouteRecordInfo<'/about', '/about', Record, Record>, + '/documents/': RouteRecordInfo<'/documents/', '/documents', Record, Record>, + '/documents/[id]': RouteRecordInfo<'/documents/[id]', '/documents/:id', { id: ParamValue }, { id: ParamValue }>, '/gallery': RouteRecordInfo<'/gallery', '/gallery', Record, Record>, '/index2': RouteRecordInfo<'/index2', '/index2', Record, Record>, '/notice/': RouteRecordInfo<'/notice/', '/notice', Record, Record>,