Michael Wang 3 жил өмнө
parent
commit
8654216302

+ 46 - 0
auto-imports.d.ts

@@ -0,0 +1,46 @@
+// Generated by 'unplugin-auto-import'
+// We suggest you to commit this file into source control
+declare global {
+  const computed: typeof import('vue')['computed']
+  const createApp: typeof import('vue')['createApp']
+  const customRef: typeof import('vue')['customRef']
+  const defineAsyncComponent: typeof import('vue')['defineAsyncComponent']
+  const defineComponent: typeof import('vue')['defineComponent']
+  const getCurrentInstance: typeof import('vue')['getCurrentInstance']
+  const h: typeof import('vue')['h']
+  const inject: typeof import('vue')['inject']
+  const isReadonly: typeof import('vue')['isReadonly']
+  const isRef: typeof import('vue')['isRef']
+  const markRaw: typeof import('vue')['markRaw']
+  const nextTick: typeof import('vue')['nextTick']
+  const onActivated: typeof import('vue')['onActivated']
+  const onBeforeMount: typeof import('vue')['onBeforeMount']
+  const onBeforeUnmount: typeof import('vue')['onBeforeUnmount']
+  const onBeforeUpdate: typeof import('vue')['onBeforeUpdate']
+  const onDeactivated: typeof import('vue')['onDeactivated']
+  const onErrorCaptured: typeof import('vue')['onErrorCaptured']
+  const onMounted: typeof import('vue')['onMounted']
+  const onRenderTracked: typeof import('vue')['onRenderTracked']
+  const onRenderTriggered: typeof import('vue')['onRenderTriggered']
+  const onServerPrefetch: typeof import('vue')['onServerPrefetch']
+  const onUnmounted: typeof import('vue')['onUnmounted']
+  const onUpdated: typeof import('vue')['onUpdated']
+  const provide: typeof import('vue')['provide']
+  const reactive: typeof import('vue')['reactive']
+  const readonly: typeof import('vue')['readonly']
+  const ref: typeof import('vue')['ref']
+  const shallowReactive: typeof import('vue')['shallowReactive']
+  const shallowReadonly: typeof import('vue')['shallowReadonly']
+  const shallowRef: typeof import('vue')['shallowRef']
+  const toRaw: typeof import('vue')['toRaw']
+  const toRef: typeof import('vue')['toRef']
+  const toRefs: typeof import('vue')['toRefs']
+  const triggerRef: typeof import('vue')['triggerRef']
+  const unref: typeof import('vue')['unref']
+  const useCssModule: typeof import('vue')['useCssModule']
+  const useRoute: typeof import('vue-router')['useRoute']
+  const useRouter: typeof import('vue-router')['useRouter']
+  const watch: typeof import('vue')['watch']
+  const watchEffect: typeof import('vue')['watchEffect']
+}
+export {}

+ 12 - 0
components.d.ts

@@ -0,0 +1,12 @@
+// generated by unplugin-vue-components
+// We suggest you to commit this file into source control
+// Read more: https://github.com/vuejs/vue-next/pull/3399
+
+declare module 'vue' {
+  export interface GlobalComponents {
+    404: typeof import('./src/components/404.vue')['default']
+    ASpin: typeof import('ant-design-vue/es')['Spin']
+  }
+}
+
+export { }

+ 1 - 1
package.json

@@ -3,7 +3,7 @@
   "version": "0.0.0",
   "private": "true",
   "scripts": {
-    "start": "vite --host 0.0.0.0",
+    "start": "vite --host 0.0.0.0 --port 3030",
     "dev": "vite --force",
     "build": "vue-tsc --noEmit --skipLibCheck && vite build",
     "build-without-type-check": "vite build",

+ 1 - 2
postcss.config.js

@@ -1,6 +1,5 @@
 module.exports = {
   plugins: {
-    tailwindcss: {},
     autoprefixer: {},
   },
-}
+};

+ 1 - 1
src/App.vue

@@ -12,13 +12,13 @@
 <script lang="ts">
 import { defineComponent, ref, watch, watchEffect } from "vue";
 import { useMainStore } from "@/store";
-const mainStore = useMainStore();
 
 export default defineComponent({
   name: "App",
 
   setup() {
     const spinning = ref(false);
+    const mainStore = useMainStore();
 
     watch(
       () => mainStore.globalMask,

+ 3 - 0
src/features/Login/Login.vue

@@ -0,0 +1,3 @@
+<template>
+  <div>login</div>
+</template>

+ 8 - 8
src/router/index.ts

@@ -1,13 +1,13 @@
 import { createRouter, createWebHistory } from "vue-router";
-import Mark from "@/features/mark/Mark.vue";
+import Login from "@/features/Login/Login.vue";
 
 const routes = [
-  { path: "/", component: Mark },
-  { path: "/mark", component: Mark, name: "Mark" },
-  {
-    path: "/admin/exam/inspected/start",
-    component: () => import("@/features/student/inspect/Inspect.vue"),
-  },
+  { path: "/", component: Login },
+  { path: "/Login", component: Login, name: "Login" },
+  // {
+  //   path: "/admin/exam/inspected/start",
+  //   component: () => import("@/features/student/inspect/Inspect.vue"),
+  // },
   {
     path: "/:pathMatch(.*)*",
     name: "NotFound",
@@ -20,7 +20,7 @@ const routes = [
 // keep it simple for now.
 const router = createRouter({
   // 4. Provide the history implementation to use. We are using the hash history for simplicity here.
-  history: createWebHistory("web"),
+  history: createWebHistory(""),
   routes, // short for `routes: routes`
 });