修改网页标签处文字

  if (systemStyle == '0') {

    const pageTitle = 'fvdsfvsd' || process.env.VUE_APP_TITLE;

    // 更新标题

    document.title = pageTitle;

  } else if (systemStyle == '1') {

    const pageTitle = '出' || process.env.VUE_APP_TITLE;

    // 更新标题

    document.title = pageTitle;

  }

  // 更新 favicon
  let favicon = document.querySelector('#dynamic-favicon');
  if (!favicon) {
    favicon = document.createElement('link');
    favicon.rel = 'icon';
    favicon.id = 'dynamic-favicon';
    document.head.appendChild(favicon);
  }
  favicon.href = faviconPath;

你可能感兴趣的:(前端,javascript,html)