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

This commit is contained in:
wangyu 2022-08-30 15:50:31 +08:00
parent 7174522c57
commit d708ef7d29

View File

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