1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| // import { reactive } from "vue";
| // // import { GetCategory } from "@/api/info";
| // /** 自定义hook */
| // export function categoryHook() {
| // const infoData = reactive({
| // category_options: [],
| // });
| // /** 获取分类 */
| // const handlerGetCategory = () => {
| // return GetCategory().then((response) => {
| // // return response.data;
| // infoData.category_options = response.data;
| // });
| // };
| // return {
| // infoData,
| // handlerGetCategory,
| // };
| // }
|
|