mirror of https://github.com/rocboss/paopao-ce
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
328 B
14 lines
328 B
3 years ago
|
import { ComponentCustomProperties } from 'vue'
|
||
|
import { Store } from 'vuex'
|
||
|
|
||
|
declare module '@vue/runtime-core' {
|
||
|
// 声明自己的 store state
|
||
|
interface State {
|
||
|
[key: string]: any
|
||
|
}
|
||
|
|
||
|
// 为 `this.$store` 提供类型声明
|
||
|
interface ComponentCustomProperties {
|
||
|
$store: Store<State>
|
||
|
}
|
||
|
}
|