修复npm安装依赖时vite的报错
This commit is contained in:
parent
c3bf3b0ba1
commit
655fb1addc
|
|
@ -7,7 +7,7 @@ export enum MenuType{
|
|||
}
|
||||
|
||||
// 匹配views里面所有的.vue文件,动态引入
|
||||
const modules = import.meta.glob('@/views/**/*.vue')
|
||||
const modules = import.meta.glob('/src/views/**/*.vue')
|
||||
|
||||
|
||||
// 过滤路由所需要的数据
|
||||
|
|
|
|||
|
|
@ -1,29 +0,0 @@
|
|||
<template>
|
||||
<div class="home">
|
||||
<div :style="{color: styleConfig.primary}">{{cartNum}}</div>
|
||||
<el-button type="primary" @click="addCartNum">主要按钮</el-button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Component, Prop, Vue } from "vue-property-decorator";
|
||||
import { Getter, Mutation } from "vuex-class";
|
||||
|
||||
@Component({
|
||||
components: {},
|
||||
watch: {
|
||||
cartNum(val) {
|
||||
console.log(val)
|
||||
}
|
||||
}
|
||||
})
|
||||
export default class Home extends Vue {
|
||||
@Getter('cartNum') cartNum!: number
|
||||
@Mutation('addCartNum') addCartNum!: () => void
|
||||
created() {
|
||||
console.log(this.cartNum, )
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
Loading…
Reference in New Issue