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