T泰达T
T泰达T
  • 发布:2025-03-03 17:43
  • 更新:2025-03-03 17:54
  • 阅读:77

uts插件总是提示找不到导出的方法?

分类:uts

在index.uts中写入了方法

export function startServer(port: number, directory: string): boolean {  
    return HTTPServerManager().startServer(port, directory)  
}

在vue中调用会报错 "startServer" is not exported by "......./utssdk/app-ios?uts-proxy", imported by "......./pages/index/index.vue".

2025-03-03 17:43 负责人:无 分享
已邀请:
DCloud_UNI_FengXY

DCloud_UNI_FengXY

提供下测试项目

要回复问题请先登录注册