页面使用鸿蒙原生地图:
<!-- #ifdef APP-HARMONY -->
<embed
tag="amap"
:options="harmonyMapOptions"
style="width: 100%; height: 280px;"
></embed>
<!-- #endif -->
通过插件根目录静态导入:
// #ifdef APP-HARMONY
import * as harmonyAmapApi from '@/uni_modules/ft-harmony-amap'
// #endif
生成文件位置:
entry/build/default/cache/default/default@CompileArkTS/esmodule/debug/entry/src/main/ets/uni_modules/index.generated.ts
故障构建中的引用:
import * as ftHarmonyAmap from "@normalized:E:\\harmony-project\\yczt-dev\\uni_modules\\ft-harmony-amap\\utssdk\\app-harmony\\index.ets";
清缓存并恢复依赖、重建后的引用:
import * as ftHarmonyAmap from "@normalized:N&&&@uni_modules/ft-harmony-amap/utssdk/app-harmony/index&1.1.3";
ft-harmony-alocation 同时出现相同地址异常。
0 个回复