import AppList from "../../components/list/index.js"; import html from "html"; import useConfig from "../../models/role.js"; export default { components: { AppList }, template: html``, setup() { // 变量定义 const config = useConfig(); // 函数定义 const onCommand = (item, rows) => { console.log(item.path, item, rows); }; return { config, onCommand }; }, };