mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 08:54:10 +00:00
chore(client) route: rm " "
This commit is contained in:
parent
76d18490f2
commit
b304d86fc4
1 changed files with 6 additions and 6 deletions
|
|
@ -209,15 +209,15 @@ var Util, DOM, CloudFunc, join;
|
|||
|
||||
this.route = function(path) {
|
||||
var module, file, current, msg,
|
||||
query = path.split('/');
|
||||
query = path.split('/');
|
||||
|
||||
if (path) {
|
||||
module = query[0];
|
||||
module = module.slice(1);
|
||||
module = getStrBigFirst(module);
|
||||
module = query[0];
|
||||
module = module.slice(1);
|
||||
module = getStrBigFirst(module);
|
||||
|
||||
file = query[1];
|
||||
current = DOM.getCurrentByName(file);
|
||||
file = query[1];
|
||||
current = DOM.getCurrentByName(file);
|
||||
|
||||
if (file && !current) {
|
||||
msg = CloudFunc.formatMsg('set current file', file, 'error');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue