vue生态依赖更新
This commit is contained in:
32
src/main.ts
32
src/main.ts
@@ -3,20 +3,20 @@
|
||||
* @Version: 2.0
|
||||
* @Author: Ruin 🍭
|
||||
* @Date: 2022-01-25 16:22:24
|
||||
* @LastEditors: 刘引
|
||||
* @LastEditTime: 2022-07-26 16:58:53
|
||||
* @LastEditors: 刘引 liu.yin.work@foxmail.com
|
||||
* @LastEditTime: 2023-08-01 15:54:28
|
||||
*/
|
||||
import { createApp } from "vue";
|
||||
|
||||
import router from "./router/index"; //引入vue-router
|
||||
import store from "./store/index";
|
||||
import App from "./App.vue";
|
||||
import {createPinia} from 'pinia'
|
||||
// import
|
||||
import "normalize.css/normalize.css";
|
||||
const app = createApp(App);
|
||||
const pinia = createPinia()
|
||||
app.use(router); // 挂载到app上
|
||||
app.use(store); // 挂载到app上
|
||||
app.use(pinia)
|
||||
app.mount("#app");
|
||||
import { createApp } from 'vue'
|
||||
import router from './router/index' //引入vue-router
|
||||
import App from './App.vue'
|
||||
import { createPinia } from 'pinia'
|
||||
import Footer from '@/components/Footer.vue'
|
||||
import Header from '@/components/Header.vue'
|
||||
import 'normalize.css/normalize.css'
|
||||
// 挂载到app上
|
||||
createApp(App)
|
||||
.use(router)
|
||||
.use(createPinia())
|
||||
.component('Footer', Footer)
|
||||
.component('Header', Header)
|
||||
.mount('#app')
|
||||
|
||||
Reference in New Issue
Block a user