change
This commit is contained in:
@@ -56,6 +56,8 @@
|
||||
},
|
||||
methods: {
|
||||
async _getPrint () {
|
||||
// 存值
|
||||
this.$store.dispatch('setConfig',{baseUrl: this.addrip, acsUrl: this.acsip, printUrl: this.printip, setTime: this.setTime * 1000})
|
||||
try {
|
||||
let res = await getPrint()
|
||||
if (res) {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import * as types from '../types'
|
||||
|
||||
const baseUrl = process.env.NODE_ENV === 'development' ? 'http://192.168.10.9:8011' : 'http://192.168.10.9:8011'
|
||||
const acsUrl = process.env.NODE_ENV === 'development' ? 'http://192.168.10.9:8011' : 'http://192.168.10.9:8011'
|
||||
const printUrl = process.env.NODE_ENV === 'development' ? 'http://192.168.10.9:8011' : 'http://192.168.10.9:8011'
|
||||
const baseUrl = process.env.NODE_ENV === 'development' ? 'http://127.0.0.1:8011' : 'http://127.0.0.1:8011'
|
||||
const acsUrl = process.env.NODE_ENV === 'development' ? 'http://127.0.0.1:8011' : 'http://127.0.0.1:8011'
|
||||
const printUrl = process.env.NODE_ENV === 'development' ? 'http://127.0.0.1:8011' : 'http://127.0.0.1:8011'
|
||||
const state = {
|
||||
baseUrl: uni.getStorageSync('baseUrl') || baseUrl,
|
||||
acsUrl: uni.getStorageSync('acsUrl') || acsUrl,
|
||||
|
||||
Reference in New Issue
Block a user