fix(salix): rollback updateClaim #2897
|
@ -56,6 +56,8 @@ export default class App {
|
|||
}
|
||||
|
||||
getUrl(route, appName = 'lilium') {
|
||||
const index = window.location.hash.indexOf(route.toLowerCase());
|
||||
const newRoute = index < 0 ? route : window.location.hash.substring(index);
|
||||
const env = process.env.NODE_ENV;
|
||||
const filter = {
|
||||
where: {and: [
|
||||
|
@ -67,7 +69,7 @@ export default class App {
|
|||
return this.logger.$http.get('Urls/findOne', {filter})
|
||||
.then(res => {
|
||||
if (res && res.data)
|
||||
return res.data.url + route;
|
||||
return res.data.url + newRoute;
|
||||
})
|
||||
.catch(() => {
|
||||
this.showError('Direction not found');
|
||||
|
|
Loading…
Reference in New Issue