diff --git a/index.html b/index.html index 908c716..95363d7 100644 --- a/index.html +++ b/index.html @@ -36,7 +36,8 @@ el: '#app', data: { tenantList: [], - selectedTenant: null + selectedTenant: null, + }, methods: { selChange(tenant) { @@ -46,6 +47,7 @@ opacity: 'toggle' }) localStorage.setItem('tenant', tenant.identifier); + wx.miniProgram.getEnv(function(res) { if (res.miniprogram) { wx.miniProgram.postMessage({ @@ -58,7 +60,7 @@ } }, created() { - fetch('http://192.168.26.198:3001/epi-project/tenants').then(r => r.json()).then(res => { + fetch('http://192.168.26.198:3000/epi-project/tenants').then(r => r.json()).then(res => { this.tenantList = res.data; }) }