luohailiang 2 年之前
父節點
當前提交
79a571a4d4
共有 7 個文件被更改,包括 2747 次插入2 次删除
  1. 1 0
      .gitignore
  2. 1 1
      index.html
  3. 3 0
      src/App.vue
  4. 13 0
      src/pages/home/index.vue
  5. 9 1
      src/router/index.js
  6. 1661 0
      src/styles/mixin.scss
  7. 1059 0
      yarn.lock

+ 1 - 0
.gitignore

@@ -24,3 +24,4 @@ dist-ssr
 *.sw?
 
 src/*.d.ts
+/.idea/

+ 1 - 1
index.html

@@ -4,7 +4,7 @@
     <meta charset="UTF-8" />
     <!-- <link rel="icon" type="image/svg+xml" href="/vite.svg" /> -->
     <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
-    <title>ಥ_ಥ</title>
+    <title>桐乡艺校</title>
   </head>
   <body>
     <div id="app"></div>

+ 3 - 0
src/App.vue

@@ -5,6 +5,9 @@
 <template>
   <router-view></router-view>
 </template>
+<style lang="scss">
+@import "@/styles/mixin.scss";
+</style>
 
 
 

+ 13 - 0
src/pages/home/index.vue

@@ -0,0 +1,13 @@
+<template>
+<div>首页</div>
+</template>
+
+<script>
+export default {
+  name: "index"
+}
+</script>
+
+<style scoped>
+
+</style>

+ 9 - 1
src/router/index.js

@@ -3,7 +3,15 @@ import { createRouter, createWebHashHistory } from "vue-router";
 export default createRouter({
   history: createWebHashHistory(),
   routes: [
-
+      {
+          path: '/',
+          redirect: '/home'
+      },
+      {
+          path: '/home',
+          title:'首页',
+          component: () => import("~/pages/home/index.vue"),
+      },
 
   ]
 })

File diff suppressed because it is too large
+ 1661 - 0
src/styles/mixin.scss


File diff suppressed because it is too large
+ 1059 - 0
yarn.lock