1
This commit is contained in:
parent
7174522c57
commit
a07097d5f4
@ -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;
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user