...
|
...
|
@@ -43,6 +43,7 @@ export default class RouterService { |
|
|
parseUrl(url) {
|
|
|
if (!url) {
|
|
|
__DEV__ && console.log('Illegal url: ' + url);
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
// url解码
|
...
|
...
|
@@ -57,6 +58,7 @@ export default class RouterService { |
|
|
|
|
|
if (markIndex == -1) {
|
|
|
__DEV__ && console.log('Can not find url rule: ' + url);
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
let rule = url.substring(markIndex + mark.length);
|
...
|
...
|
@@ -67,6 +69,7 @@ export default class RouterService { |
|
|
return json;
|
|
|
} catch (e) {
|
|
|
__DEV__ && console.log('Parse json string fail: ' + e);
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
} |
...
|
...
|
|