@@ -11,6 +11,8 @@ Vue.config.productionTip = !!env.isProduction;
App.mpType = 'app'
+Vue.prototype.serverurl="http://127.0.0.1:8090";
+
Vue.prototype.$store = store;
const app = new Vue({
@@ -87,12 +87,12 @@
this.showOrNo = "none";
},
updata() {
-
+ var serverurl = this.serverurl;
var id = this.id;
var value = this.value;
if (value != null && value != '') {
uni.request({
- url: 'http://127.0.0.1:8090/TEquipment/updateName',
+ url: serverurl+'/TEquipment/updateName',
data: {
id: id,
name: value