const Cookies = require("js-cookie"); let title = '' let config = Cookies.get('GCLS_Config') if (config) { let configObj = JSON.parse(config); title = configObj.title var link = document.querySelector("link[rel*='icon']") || document.createElement('link'); link.type = 'image/x-icon'; link.rel = 'shortcut icon'; link.href = configObj.title_icon_url; document.getElementsByTagName('head')[0].appendChild(link); } module.exports = { title: '全球国际中文教学服务云平台', /** * @type {boolean} true | false * @description Whether fix the header */ fixedHeader: false, /** * @type {boolean} true | false * @description Whether show the logo in sidebar */ sidebarLogo: false }