no message

This commit is contained in:
蔡玲
2024-10-23 10:00:33 +08:00
parent 05e740fd4c
commit c4aa7d4266
2 changed files with 10 additions and 3 deletions

View File

@@ -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

View File

@@ -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 = {