mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
synced 2025-12-18 17:05:54 +08:00
修改高德地图key更新此commit 之前请务必确认一下创建的高德key日期。修改部分方法名称
This commit is contained in:
@@ -1,17 +1,13 @@
|
||||
module.exports = {
|
||||
title: "lilishop", //配置显示在浏览器标签的title
|
||||
/**
|
||||
/**
|
||||
* 高德地图申请链接
|
||||
* https://lbs.amap.com/api/javascript-api/guide/abc/prepare
|
||||
* 添加成功后,可获取到key值和安全密钥jscode(自2021年12月02日升级,升级之后所申请的 key 必须配备安全密钥 jscode 一起使用)
|
||||
* 如果是2021年12月02日之后的需要在main.js中添加如下代码
|
||||
* window._AMapSecurityConfig = {
|
||||
* securityJsCode:'您申请的安全密钥',
|
||||
* }
|
||||
*
|
||||
* 如果2021年12月02日之前申请的无视上面代码
|
||||
*/
|
||||
aMapKey: "b440952723253aa9fe483e698057bf7d", //高德web端申请的api key
|
||||
//FIXME 请检查当前高德key创建的日期,如果2021年12月02日之前申请的 无需填写安全密钥
|
||||
aMapSecurityJsCode:"2bd0fbf621881f4c77be74f0e76495f3", // 高德web端js申请的安全密钥
|
||||
aMapKey: "7f11113750315d8543daaf5c3ba353ca", //高德web端js申请的api key
|
||||
website: "https://www.pickmall.cn", //官网地址
|
||||
enableCDN: true, //生产环境 是否启用cdn加载 vue等js
|
||||
port: 10002, //端口
|
||||
|
||||
@@ -27,6 +27,13 @@ import VueLazyload from "vue-lazyload";
|
||||
import * as filters from "@/utils/filters"; // global filter
|
||||
|
||||
import { md5 } from "@/utils/md5.js";
|
||||
const { aMapSecurityJsCode } = require("@/config");
|
||||
// 高德安全密钥
|
||||
if (aMapSecurityJsCode) {
|
||||
window._AMapSecurityConfig = {
|
||||
securityJsCode: aMapSecurityJsCode,
|
||||
};
|
||||
}
|
||||
Vue.config.devtools = true;
|
||||
Vue.config.productionTip = false;
|
||||
Vue.use(VueLazyload, {
|
||||
@@ -84,7 +91,7 @@ new Vue({
|
||||
mounted() {
|
||||
// 初始化菜单
|
||||
util.initRouter(this);
|
||||
|
||||
|
||||
this.currentPageName = this.$route.name;
|
||||
// 显示打开的页面的列表
|
||||
this.$store.commit("setOpenedList");
|
||||
|
||||
Reference in New Issue
Block a user