Browse Source

bug

Signed-off-by: liubaiyan <632697560@qq.com>
liubaiyan 3 years ago
parent
commit
7974229123
2 changed files with 6 additions and 1 deletions
  1. 1 1
      index.html
  2. 5 0
      src/views/attendanceManage/enclosureManage.vue

+ 1 - 1
index.html

@@ -5,7 +5,7 @@
     <link rel="icon" href="/favicon.ico" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title>考勤管理平台</title>
-    <script src="https://webapi.amap.com/maps?v=1.4.15&key=73f14a1c454d2bc6358609ca99885496&plugin=AMap.CircleEditor,AMap.PolyEditor"></script>
+    <script src="https://webapi.amap.com/maps?v=1.4.15&key=48723d1b64db9db0d0af8ec8ce01b8a9&plugin=AMap.CircleEditor,AMap.PolyEditor"></script>
   </head>
   <body>
     <div id="app"></div>

+ 5 - 0
src/views/attendanceManage/enclosureManage.vue

@@ -397,6 +397,11 @@ export default {
           city: '全国'
         })
         autoComplete.search(queryString, (status, result) => {
+          if (status == 'error') {
+            result = {
+              tips: []
+            }
+          }
           cb(result.tips.map(item => {
             return {
               ...item,