可以把共用的功能做成Composition API; 新增API 資料夾,例如: my-api; 新增檔案,例如: my-api/useWebSocket.js. // 連線websocket export function webSocket(url) ...
確定! 回上一頁