js_reverse/学习VUE/hello_vue3/笔记/将组建中了逻辑模块化hooks-useSum.ts
2024-11-01 17:19:24 +08:00

8 lines
105 B
TypeScript

import { ref } from 'vue'
export const num = ref(0)
export function changeNum() {
num.value += 1
}