Forráskód Böngészése

feat: 优化细节

叶静 3 hete
szülő
commit
f9c5005877
2 módosított fájl, 2 hozzáadás és 2 törlés
  1. 1 1
      src/sheep/local-data/admin.js
  2. 1 1
      src/sheep/router/guard.js

+ 1 - 1
src/sheep/local-data/admin.js

@@ -7,7 +7,7 @@ const initData = {
   code: '200',
   msg: '获取成功',
   data: {
-    name: 'bandhuBuy',
+    name: 'BandhuBuy',
     logo: '/static/images/logo.png',
     domainurl: '',
     filesystem: 'aliyun',

+ 1 - 1
src/sheep/router/guard.js

@@ -35,7 +35,7 @@ export function setupRouterGuard(router) {
 
   router.afterEach(async (to, from) => {
     // 设置标题
-    document.title = `<${to.meta.title}> ${$store('app').info.name}`;
+    document.title = `${$store('app').info.name}-${to.meta.title}`;
     // 添加任务栏历史
     if (to.meta.taskbar !== false) {
       addTaskbar({