1、项目初始化使用官方脚手架创建基本项目 Installation · Get Started with Nuxtnpx nuxi@latest init <project-name>2、安装高德地图依赖 @amap/amap-jsapi-loader 和 @amap/amap-jsapi-types@amap/amap-jsapi-loader 是API依赖包@amap/amap-jsapi-types 是Type声明包yarn add @amap/amap-jsapi-loader @amap/amap-jsapi-types3、编写插件 plugins/amap.client.ts// plugins/amap.client.ts // 引入 AMapLoader 依赖包 import AMapLoader from '@amap/amap-jsapi-loader'; export default defineNuxtPlugin(async (nuxtApp) => { // 安全密钥 ;(window as any)._AMapSecurityCo
lettered
生,亦我所欲也;义,亦我所欲也。