Commit 5ce8e6436997271585656959ec5aec9d656c5e23
1 parent
a1f10e68
fix: axios config
Showing
2 changed files
with
20 additions
and
19 deletions
yudao-server/src/main/resources/application-local.yaml
| @@ -45,33 +45,33 @@ spring: | @@ -45,33 +45,33 @@ spring: | ||
| 45 | datasource: | 45 | datasource: |
| 46 | master: | 46 | master: |
| 47 | name: ruoyi-vue-pro | 47 | name: ruoyi-vue-pro |
| 48 | - url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.master.name}?allowMultiQueries=true&useUnicode=true&useSSL=false&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true&nullCatalogMeansCurrent=true # MySQL Connector/J 8.X 连接的示例 | ||
| 49 | -# url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT # MySQL Connector/J 5.X 连接的示例 | ||
| 50 | -# url: jdbc:postgresql://127.0.0.1:5432/${spring.datasource.dynamic.datasource.slave.name} # PostgreSQL 连接的示例 | ||
| 51 | -# url: jdbc:oracle:thin:@127.0.0.1:1521:xe # Oracle 连接的示例 | ||
| 52 | -# url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=${spring.datasource.dynamic.datasource.master.name} # SQLServer 连接的示例 | 48 | + url: jdbc:mysql://39.107.87.6:3306/${spring.datasource.dynamic.datasource.master.name}?allowMultiQueries=true&useUnicode=true&useSSL=false&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true&nullCatalogMeansCurrent=true # MySQL Connector/J 8.X 连接的示例 |
| 49 | + # url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.master.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT # MySQL Connector/J 5.X 连接的示例 | ||
| 50 | + # url: jdbc:postgresql://127.0.0.1:5432/${spring.datasource.dynamic.datasource.slave.name} # PostgreSQL 连接的示例 | ||
| 51 | + # url: jdbc:oracle:thin:@127.0.0.1:1521:xe # Oracle 连接的示例 | ||
| 52 | + # url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=${spring.datasource.dynamic.datasource.master.name} # SQLServer 连接的示例 | ||
| 53 | username: root | 53 | username: root |
| 54 | - password: 123456 | ||
| 55 | -# username: sa | ||
| 56 | -# password: JSm:g(*%lU4ZAkz06cd52KqT3)i1?H7W | 54 | + password: Root@xingyu123 |
| 55 | + # username: sa | ||
| 56 | + # password: JSm:g(*%lU4ZAkz06cd52KqT3)i1?H7W | ||
| 57 | slave: # 模拟从库,可根据自己需要修改 | 57 | slave: # 模拟从库,可根据自己需要修改 |
| 58 | name: ruoyi-vue-pro | 58 | name: ruoyi-vue-pro |
| 59 | - url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.slave.name}?allowMultiQueries=true&useUnicode=true&useSSL=false&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true&nullCatalogMeansCurrent=true # MySQL Connector/J 8.X 连接的示例 | ||
| 60 | -# url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.slave.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT # MySQL Connector/J 5.X 连接的示例 | ||
| 61 | -# url: jdbc:postgresql://127.0.0.1:5432/${spring.datasource.dynamic.datasource.slave.name} # PostgreSQL 连接的示例 | ||
| 62 | -# url: jdbc:oracle:thin:@127.0.0.1:1521:xe # Oracle 连接的示例 | ||
| 63 | -# url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=${spring.datasource.dynamic.datasource.slave.name} # SQLServer 连接的示例 | 59 | + url: jdbc:mysql://39.107.87.6:3306/${spring.datasource.dynamic.datasource.slave.name}?allowMultiQueries=true&useUnicode=true&useSSL=false&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true&nullCatalogMeansCurrent=true # MySQL Connector/J 8.X 连接的示例 |
| 60 | + # url: jdbc:mysql://127.0.0.1:3306/${spring.datasource.dynamic.datasource.slave.name}?useSSL=false&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF-8&serverTimezone=CTT # MySQL Connector/J 5.X 连接的示例 | ||
| 61 | + # url: jdbc:postgresql://127.0.0.1:5432/${spring.datasource.dynamic.datasource.slave.name} # PostgreSQL 连接的示例 | ||
| 62 | + # url: jdbc:oracle:thin:@127.0.0.1:1521:xe # Oracle 连接的示例 | ||
| 63 | + # url: jdbc:sqlserver://127.0.0.1:1433;DatabaseName=${spring.datasource.dynamic.datasource.slave.name} # SQLServer 连接的示例 | ||
| 64 | username: root | 64 | username: root |
| 65 | - password: 123456 | ||
| 66 | -# username: sa | ||
| 67 | -# password: JSm:g(*%lU4ZAkz06cd52KqT3)i1?H7W | 65 | + password: Root@xingyu123 |
| 66 | +# username: sa | ||
| 67 | +# password: JSm:g(*%lU4ZAkz06cd52KqT3)i1?H7W | ||
| 68 | 68 | ||
| 69 | # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 | 69 | # Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优 |
| 70 | redis: | 70 | redis: |
| 71 | - host: 127.0.0.1 # 地址 | 71 | + host: 39.107.87.6 # 地址 |
| 72 | port: 6379 # 端口 | 72 | port: 6379 # 端口 |
| 73 | - database: 0 # 数据库索引 | ||
| 74 | -# password: 123456 # 密码,建议生产环境开启 | 73 | + database: 4 # 数据库索引 |
| 74 | + password: xingyu # 密码,建议生产环境开启 | ||
| 75 | 75 | ||
| 76 | jasypt: | 76 | jasypt: |
| 77 | encryptor: | 77 | encryptor: |
yudao-ui-admin-vue3/src/config/axios/index.ts
| @@ -172,6 +172,7 @@ const handleAuthorized = () => { | @@ -172,6 +172,7 @@ const handleAuthorized = () => { | ||
| 172 | isRelogin.show = true | 172 | isRelogin.show = true |
| 173 | ElNotification.error(t('sys.api.timeoutMessage')) | 173 | ElNotification.error(t('sys.api.timeoutMessage')) |
| 174 | } | 174 | } |
| 175 | + location.href = '/' | ||
| 175 | return Promise.reject(t('sys.api.timeoutMessage')) | 176 | return Promise.reject(t('sys.api.timeoutMessage')) |
| 176 | } | 177 | } |
| 177 | export { service } | 178 | export { service } |