فهرست منبع

增加画作详情页面路由

aamin 1 سال پیش
والد
کامیت
7ef1392fd1
2فایلهای تغییر یافته به همراه17 افزوده شده و 0 حذف شده
  1. 7 0
      src/router/index.js
  2. 10 0
      src/views/PaintingDetail.vue

+ 7 - 0
src/router/index.js

@@ -1,6 +1,7 @@
 import { createRouter, createWebHashHistory } from 'vue-router'
 import HomeView from '../views/HomeView.vue'
 import MoreContent from '../views/MoreContent.vue'
+import PaintingDetail from '../views/PaintingDetail'
 
 // import store from '@/store/index.js'
 
@@ -20,6 +21,12 @@ const routes = [
     component: MoreContent,
     // component: TEXT,
   },
+  {
+    path: '/painting-detail',
+    name: 'PaintingDetail',
+    component: PaintingDetail,
+    // component: TEXT,
+  },
 ]
 
 const router = createRouter({

+ 10 - 0
src/views/PaintingDetail.vue

@@ -0,0 +1,10 @@
+<script setup>
+</script>
+
+<template>
+  <div class="home" />
+</template>
+
+<style lang='less' scoped>
+
+</style>