From 054c6fd043cdb6e811ff4bca99c48e9710ac7415 Mon Sep 17 00:00:00 2001 From: TS-QD1 Date: Mon, 13 Mar 2023 18:18:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-dev.yml | 8 ++++---- src/main/resources/static/default.html | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index af0305e..4abbd38 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -98,7 +98,7 @@ spring: security: oauth2: # oauth-server: http://121.36.71.250:58011/usercenter - oauth-server: http://192.168.0.155:7011/usercenter + oauth-server: http://192.168.0.15:7011/usercenter oauth-logout: ${security.oauth2.oauth-server}/logout?redirect_uri=${server.url} client: #client-id: c00491da506842ddb516d4b1e5ccd13e @@ -117,7 +117,7 @@ security: check-token-access: ${security.oauth2.oauth-server}/oauth2_client/token_key api-path: # user-center: http://121.36.71.250:58011/usercenter - user-center: http://192.168.0.155:7011/usercenter + user-center: http://192.168.0.15:7011/usercenter # 数据库 mybatis: @@ -135,7 +135,7 @@ swagger: # 文件 file: # 文件的保存路径 - upload-path: /Users/wanggeng/Desktop/UploadFiles/ + upload-path: C:\Users\TS-QD1\Desktop\UploadFiles\ # 图片类型 image-types: png,jpg,jpeg,gif,blob # 视频类型 @@ -173,7 +173,7 @@ file: # 日志 logging: file: - name: /Users/wanggeng/Desktop/UploadFiles/logs/population.log + name: C:\Users\TS-QD1\Desktop\UploadFiles\logs\population.log level: root: error ink.wgink: debug diff --git a/src/main/resources/static/default.html b/src/main/resources/static/default.html index 0b15d19..53e6dd3 100644 --- a/src/main/resources/static/default.html +++ b/src/main/resources/static/default.html @@ -372,6 +372,9 @@ function nationChart() { top.restAjax.get(top.restAjax.path('app/default-home-page/release/get-nation', []), {}, null, function(code, data) { + if(!data.counts) { + return; + } var chartData = []; for(var i = 0; i < data.counts.length; i++){ var param = {