feat: 让跳转更加智能,模糊化请求路径

This commit is contained in:
wangyu 2022-08-30 15:50:31 +08:00
parent 7174522c57
commit d708ef7d29
1 changed files with 6 additions and 2 deletions

View File

@ -32,6 +32,8 @@
</div>
</div>
<script>
// var host = 'http://192.168.26.198:10089';
var ctx = '/epi-project'
var app = new Vue({
el: '#app',
data: {
@ -54,11 +56,13 @@
}
})
}
})
});
// 跳转业务系统
location.href = '/'
}
},
created() {
fetch('http://192.168.26.198:3001/epi-project/tenants').then(r => r.json()).then(res => {
fetch(ctx + '/tenants').then(r => r.json()).then(res => {
this.tenantList = res.data;
})
}