123
This commit is contained in:
parent
4f0832ce6c
commit
09e1309893
@ -13,35 +13,32 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { defineAsyncComponent } from 'vue';
|
import { defineAsyncComponent } from 'vue';
|
||||||
const widgets = defineAsyncComponent(() => import('./widgets'));
|
const widgets = defineAsyncComponent(() => import('./widgets'));
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "home",
|
name: "home",
|
||||||
components: {
|
components: {
|
||||||
widgets
|
widgets
|
||||||
},
|
},
|
||||||
data(){
|
data() {
|
||||||
return {
|
return {
|
||||||
pageLoading: true,
|
pageLoading: true,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created(){
|
created() {
|
||||||
|
|
||||||
},
|
|
||||||
mounted(){
|
|
||||||
|
|
||||||
// console.log(this.$socket)
|
},
|
||||||
|
mounted() {
|
||||||
|
// console.log(this.$socket)
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onMounted(){
|
onMounted() {
|
||||||
this.pageLoading = false
|
this.pageLoading = false
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style></style>
|
||||||
|
|
||||||
</style>
|
|
||||||
|
@ -28,13 +28,13 @@ module.exports = defineConfig({
|
|||||||
// 去除生产环境中的 console 输出
|
// 去除生产环境中的 console 输出
|
||||||
minimize: true,
|
minimize: true,
|
||||||
minimizer: [
|
minimizer: [
|
||||||
new TerserPlugin({
|
new TerserPlugin({
|
||||||
terserOptions: {
|
terserOptions: {
|
||||||
compress: {
|
compress: {
|
||||||
drop_console: true
|
drop_console: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
],
|
],
|
||||||
splitChunks: {
|
splitChunks: {
|
||||||
chunks: "all",
|
chunks: "all",
|
||||||
|
Loading…
Reference in New Issue
Block a user