mirror of
https://github.com/ZiuChen/ClipboardManager.git
synced 2025-06-08 06:16:18 +08:00
refactor: Vue升级3.0 移除多余依赖
This commit is contained in:
parent
75ccc5f5f2
commit
c326c96f82
14
package.json
14
package.json
@ -9,20 +9,16 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"core-js": "^3.6.4",
|
"core-js": "^3.6.4",
|
||||||
"crypto": "^1.0.1",
|
"crypto": "^1.0.1",
|
||||||
|
"less": "^4.1.3",
|
||||||
"licia": "^1.23.0",
|
"licia": "^1.23.0",
|
||||||
"vue": "^2.6.11",
|
"vue": "^3.2.37",
|
||||||
"vue-router": "^3.1.6",
|
|
||||||
"vuex": "^3.1.3",
|
|
||||||
"webpack": "4.37.0"
|
"webpack": "4.37.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@vue/cli-plugin-babel": "~4.3.0",
|
"@vue/cli-service": "^5.0.8",
|
||||||
"@vue/cli-plugin-router": "~4.3.0",
|
|
||||||
"@vue/cli-plugin-vuex": "~4.3.0",
|
|
||||||
"@vue/cli-service": "~4.3.0",
|
|
||||||
"copy-webpack-plugin": "^6.0.2",
|
"copy-webpack-plugin": "^6.0.2",
|
||||||
"deepmerge": "^4.2.2",
|
"less-loader": "^11.0.0",
|
||||||
"uglifyjs-webpack-plugin": "^2.2.0",
|
"uglifyjs-webpack-plugin": "^2.2.0",
|
||||||
"vue-template-compiler": "^2.6.11"
|
"vue-template-compiler": "^2.7.8"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
7221
pnpm-lock.yaml
generated
7221
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -1,5 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="app">
|
<div class="app">
|
||||||
<router-view/>
|
<Main></Main>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import Main from './views/Main.vue'
|
||||||
|
</script>
|
||||||
|
13
src/main.js
13
src/main.js
@ -1,10 +1,9 @@
|
|||||||
import Vue from 'vue'
|
import { createApp } from 'vue'
|
||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
import router from './router'
|
import less from 'less'
|
||||||
|
|
||||||
Vue.config.productionTip = false
|
const app = createApp(App)
|
||||||
|
|
||||||
new Vue({
|
app.use(less)
|
||||||
router,
|
|
||||||
render: (h) => h(App)
|
app.mount('#app')
|
||||||
}).$mount('#app')
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user