From c4aa7d4266791459d10a9ace716cbf1a93be0c9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=94=A1=E7=8E=B2?= <8702040+cai-ling@user.noreply.gitee.com> Date: Wed, 23 Oct 2024 10:00:33 +0800 Subject: [PATCH] no message --- src/pages/Setup.vue | 9 ++++++++- src/vuex/modules/com.js | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) 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 = {