You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.1 KiB
34 lines
1.1 KiB
"use strict"; |
|
const common_vendor = require("../../common/vendor.js"); |
|
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({ |
|
__name: "news", |
|
setup(__props) { |
|
let iptis = common_vendor.ref("http://192.168.10.12:1086/"); |
|
if (common_vendor.index.getStorageSync("setip")) { |
|
iptis.value = common_vendor.index.getStorageSync("setip"); |
|
} |
|
function submitip() { |
|
if (iptis.value) { |
|
common_vendor.index.setStorageSync("setip", iptis.value); |
|
common_vendor.index.showToast({ |
|
title: "设置成功", |
|
icon: "success" |
|
}); |
|
} else { |
|
common_vendor.index.showToast({ |
|
title: "请输入ip", |
|
icon: "none" |
|
}); |
|
} |
|
} |
|
return (_ctx, _cache) => { |
|
return { |
|
a: common_vendor.unref(iptis), |
|
b: common_vendor.o(($event) => common_vendor.isRef(iptis) ? iptis.value = $event.detail.value : iptis = $event.detail.value), |
|
c: common_vendor.o(submitip) |
|
}; |
|
}; |
|
} |
|
}); |
|
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__file", "F:/物流/logPm/pages/news/news.vue"]]); |
|
wx.createPage(MiniProgramPage);
|
|
|