From 9d9fe407372fc0c17572a0a22ae4020d07cf8e28 Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Fri, 16 Apr 2021 11:59:30 +0800
Subject: [PATCH] 地图跨域修复

---
 src/views/policeInformationDistribution/patrolManagement.vue     |    4 ++--
 vue.config.js                                                    |    2 +-
 src/views/policeInformationDistribution/policeManagementTeam.vue |    4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/views/policeInformationDistribution/patrolManagement.vue b/src/views/policeInformationDistribution/patrolManagement.vue
index a0419c3..287fb02 100644
--- a/src/views/policeInformationDistribution/patrolManagement.vue
+++ b/src/views/policeInformationDistribution/patrolManagement.vue
@@ -1,5 +1,5 @@
 <template>
-<iframe src="/map/index.html?openid=PatrolManagement" style="width: 100%;height: 100%" frameborder="0"></iframe>
+<iframe src="https://web.byisf.com/map/index.html?openid=PatrolManagement" style="width: 100%;height: 100%" frameborder="0"></iframe>
 </template>
 
 <script>
@@ -11,4 +11,4 @@
 
 <style>
 
-</style>
\ No newline at end of file
+</style>
diff --git a/src/views/policeInformationDistribution/policeManagementTeam.vue b/src/views/policeInformationDistribution/policeManagementTeam.vue
index 9ec8e37..3af82cf 100644
--- a/src/views/policeInformationDistribution/policeManagementTeam.vue
+++ b/src/views/policeInformationDistribution/policeManagementTeam.vue
@@ -1,5 +1,5 @@
 <template>
-<iframe src="/map/index.html?openid=APoliceTeam" style="width: 100%;height: 100%" frameborder="0"></iframe>
+<iframe src="https://web.byisf.com/map/index.html?openid=APoliceTeam" style="width: 100%;height: 100%" frameborder="0"></iframe>
 </template>
 
 <script>
@@ -11,4 +11,4 @@
 
 <style>
 
-</style>
\ No newline at end of file
+</style>
diff --git a/vue.config.js b/vue.config.js
index 480af14..906b7b2 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -35,7 +35,7 @@
             '/api': {
                 //本地服务接口地址
               // target: 'http://localhost:82/',
-                target: 'https://web.byisf.com/api/',
+              target: 'https://web.byisf.com/api/',
                 //远程演示服务地址,可用于直接启动项目
                 //target: 'https://saber.bladex.vip/api',
                 ws: true,

--
Gitblit v1.9.3