diff --git a/src/pages/Setup.vue b/src/pages/Setup.vue index 7993488..0227838 100644 --- a/src/pages/Setup.vue +++ b/src/pages/Setup.vue @@ -34,6 +34,13 @@ export default { }, methods: { _config () { + if (this.setTime <= 3) { + this.$message({ + message: '刷新时间设置过短', + type: 'warning' + }) + return + } if (this.setTime > 10800) { this.$message({ message: '刷新时间设置过长', @@ -113,7 +120,7 @@ export default { border-radius 3px margin-top 5px .btn - background-color #2778f3 + background-color #0182f7 border-radius 3px margin-top 5px height 40px diff --git a/src/vuex/modules/com.js b/src/vuex/modules/com.js index 5539a36..21dd5ce 100644 --- a/src/vuex/modules/com.js +++ b/src/vuex/modules/com.js @@ -1,13 +1,13 @@ import * as types from '../types' import { getStore, setStore } from '@js/mUtils.js' -const baseUrl = process.env.NODE_ENV === 'development' ? 'http://192.168.8.221:8011' : 'http://192.168.8.221:8011' +const baseUrl = process.env.NODE_ENV === 'development' ? 'http://192.168.10.52:8018' : 'http://192.168.10.52:8018' /** * App通用配置 */ const state = { baseUrl: getStore('baseUrl') || baseUrl, - setTime: getStore('setTime') || 180000 + setTime: getStore('setTime') || 5000 } const actions = {