feat(home): 新增设计中枢首页(工作区/素材/技能/审计分区 + 搜索 + 快捷键 + 最近访问),品牌区可回首页,默认入口切为 home.html
This commit is contained in:
@@ -30,7 +30,7 @@ http.createServer((req, res) => {
|
||||
return;
|
||||
}
|
||||
let p = decodeURIComponent(req.url.split('?')[0]);
|
||||
if (p === '/') p = '/_design-test/zhenfang-logo-picker.html';
|
||||
if (p === '/') p = '/home.html';
|
||||
let file = path.join(ROOT, p);
|
||||
if (!fs.existsSync(file) && fs.existsSync(path.join(ROOT, '_design-test', p))) {
|
||||
file = path.join(ROOT, '_design-test', p); // 允许直接用 /xxx.html 访问 _design-test 下的产物
|
||||
|
||||
Reference in New Issue
Block a user