From 1310ee4421fda391bb3511d00ae669c232ad218b Mon Sep 17 00:00:00 2001 From: stone <827672943@qq.com> Date: Tue, 6 Jun 2023 16:53:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9B=B8=E5=85=B3=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + .../src/main/resources/application-prod.yml | 6 +++--- .../src/main/java/com/psdc/core/text/Convert.java | 2 +- psdc-ui/src/router/index.js | 15 +-------------- psdc-ui/src/views/bigview/index.vue | 2 +- 5 files changed, 7 insertions(+), 19 deletions(-) diff --git a/.gitignore b/.gitignore index 11d5aae..d90ac3d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ target node_modules psdc-ui/yarn.lock +dist diff --git a/psdc-admin/src/main/resources/application-prod.yml b/psdc-admin/src/main/resources/application-prod.yml index 2f08eaf..992e794 100644 --- a/psdc-admin/src/main/resources/application-prod.yml +++ b/psdc-admin/src/main/resources/application-prod.yml @@ -54,9 +54,9 @@ spring: # 数据库驱动 driver-class-name: com.mysql.cj.jdbc.Driver type: com.alibaba.druid.pool.DruidDataSource - url: jdbc:mysql://192.168.10.99:3306/psdc?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&allowMultiQueries=true - username: hwjsolar - password: 123456 + url: jdbc:mysql://127.0.0.1:3308/psdc?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&allowMultiQueries=true + username: root + password: root messages: # 国际化资源文件路径 basename: i18n/messages diff --git a/psdc-common/src/main/java/com/psdc/core/text/Convert.java b/psdc-common/src/main/java/com/psdc/core/text/Convert.java index 8f6c501..f21d91d 100644 --- a/psdc-common/src/main/java/com/psdc/core/text/Convert.java +++ b/psdc-common/src/main/java/com/psdc/core/text/Convert.java @@ -28,7 +28,7 @@ public class Convert public static String toStr(Object value, String defaultValue) { if (null == value) - { + { return defaultValue; } if (value instanceof String) diff --git a/psdc-ui/src/router/index.js b/psdc-ui/src/router/index.js index 76bdf48..981efb8 100644 --- a/psdc-ui/src/router/index.js +++ b/psdc-ui/src/router/index.js @@ -142,20 +142,7 @@ export const dynamicRoutes = [ } ] }, - { - path: '/tool/gen-edit', - component: Layout, - hidden: true, - permissions: ['tool:gen:edit'], - children: [ - { - path: 'index/:tableId(\\d+)', - component: () => import('@/views/tool/gen/editTable'), - name: 'GenEdit', - meta: { title: '修改生成配置', activeMenu: '/tool/gen' } - } - ] - } + ] const router = createRouter({ diff --git a/psdc-ui/src/views/bigview/index.vue b/psdc-ui/src/views/bigview/index.vue index 62b80b4..35026db 100644 --- a/psdc-ui/src/views/bigview/index.vue +++ b/psdc-ui/src/views/bigview/index.vue @@ -49,7 +49,7 @@
当前功率
- +
{{ nowEle }}kWh