- Edit
- components/HelloWorld.vue
to test HMR
-
- Check out - create-vue, the official Vue + Vite starter -
-- Install - Volar - in your IDE for a better DX -
-Click on the Vite and Vue logos to learn more
- - - diff --git a/montier/src/main.ts b/montier/src/main.ts index 2425c0f..30e7984 100644 --- a/montier/src/main.ts +++ b/montier/src/main.ts @@ -1,5 +1,14 @@ import { createApp } from 'vue' -import './style.css' import App from './App.vue' +import './style.css' +import { createPinia } from 'pinia' +import router from './router' +import ElementPlus from 'element-plus' +import 'element-plus/dist/index.css' + +const app = createApp(App) +app.use(ElementPlus) +app.use(createPinia()) +app.use(router) -createApp(App).mount('#app') +app.mount('#app') diff --git a/montier/src/pages/HomePage.vue b/montier/src/pages/HomePage.vue new file mode 100644 index 0000000..4620080 --- /dev/null +++ b/montier/src/pages/HomePage.vue @@ -0,0 +1,11 @@ + + + + + + + \ No newline at end of file diff --git a/montier/src/router/index.ts b/montier/src/router/index.ts new file mode 100644 index 0000000..56f31bb --- /dev/null +++ b/montier/src/router/index.ts @@ -0,0 +1,15 @@ +import {createRouter,createWebHistory} from "vue-router"; + +const routes = [ + { + path: '/', + component: ()=>import('../pages/HomePage.vue') + } +] + +const router = createRouter({ + history: createWebHistory(), + routes +}) + +export default router \ No newline at end of file diff --git a/montier/src/store/index.ts b/montier/src/store/index.ts new file mode 100644 index 0000000..4177641 --- /dev/null +++ b/montier/src/store/index.ts @@ -0,0 +1,3 @@ +import { createPinia } from 'pinia'; +//对外暴露大仓库 +export default createPinia(); \ No newline at end of file diff --git a/montier/src/store/modules/homepage.ts b/montier/src/store/modules/homepage.ts new file mode 100644 index 0000000..04c0b40 --- /dev/null +++ b/montier/src/store/modules/homepage.ts @@ -0,0 +1,19 @@ +import { defineStore } from "pinia"; + +const useHomeStore = defineStore('Home', { + state: () => { + return { + + } + }, + + actions: { + + }, + + getters: { + + } +}) + +export default useHomeStore \ No newline at end of file diff --git a/montier/src/store/modules/interface/index.ts b/montier/src/store/modules/interface/index.ts new file mode 100644 index 0000000..e69de29 diff --git a/montier/src/style.css b/montier/src/style.css index 7294765..07b8fb2 100644 --- a/montier/src/style.css +++ b/montier/src/style.css @@ -1,80 +1,25 @@ -:root { - font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif; - line-height: 1.5; - font-weight: 400; - - color-scheme: light dark; - color: rgba(255, 255, 255, 0.87); - background-color: #242424; - - font-synthesis: none; - text-rendering: optimizeLegibility; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - -webkit-text-size-adjust: 100%; -} - -a { - font-weight: 500; - color: #646cff; - text-decoration: inherit; -} -a:hover { - color: #535bf2; -} - -body { +body,html,ul,li,span,p,h1,h2,h5{ + padding: 0; margin: 0; - display: flex; - place-items: center; - min-width: 320px; - min-height: 100vh; } - -h1 { - font-size: 3.2em; - line-height: 1.1; -} - -button { - border-radius: 8px; - border: 1px solid transparent; - padding: 0.6em 1.2em; - font-size: 1em; +h1,h2,h3,h4,h5,h6{ + margin-bottom: 0.5rem; font-weight: 500; - font-family: inherit; - background-color: #1a1a1a; - cursor: pointer; - transition: border-color 0.25s; + line-height: 1.2; } -button:hover { - border-color: #646cff; +li{ + list-style: none; } -button:focus, -button:focus-visible { - outline: 4px auto -webkit-focus-ring-color; +h2{ + font-size: 2rem; } - -.card { - padding: 2em; +a { + font-weight: 500; + color: initial; + text-decoration: inherit; } - -#app { - max-width: 1280px; - margin: 0 auto; - padding: 2rem; - text-align: center; +a:hover { + /*color: #535bf2;*/ + text-decoration:none; } -@media (prefers-color-scheme: light) { - :root { - color: #213547; - background-color: #ffffff; - } - a:hover { - color: #747bff; - } - button { - background-color: #f9f9f9; - } -} diff --git a/montier/src/vite-env.d.ts b/montier/src/vite-env.d.ts index 11f02fe..7a6a2da 100644 --- a/montier/src/vite-env.d.ts +++ b/montier/src/vite-env.d.ts @@ -1 +1,6 @@ ///