提交 af189fd9 authored 作者: 郑伟娜's avatar 郑伟娜

联调oem title配置接口

上级 660f2894
...@@ -136,3 +136,11 @@ export function importTemplate() { ...@@ -136,3 +136,11 @@ export function importTemplate() {
method: 'get' method: 'get'
}) })
} }
export function getBaseSettingTitle(params) {
return request({
url: '/system/oem/getBaseSettingTitle',
method: 'get',
params
})
}
...@@ -4,6 +4,9 @@ import { Message } from 'element-ui' ...@@ -4,6 +4,9 @@ import { Message } from 'element-ui'
import NProgress from 'nprogress' import NProgress from 'nprogress'
import 'nprogress/nprogress.css' import 'nprogress/nprogress.css'
import { getToken } from '@/utils/auth' import { getToken } from '@/utils/auth'
import getPageTitle from '@/utils/get-page-title'
getPageTitle()
NProgress.configure({ showSpinner: false }) NProgress.configure({ showSpinner: false })
......
import defaultSettings from '@/settings'
import { getBaseSettingTitle } from '@/api/system/user'
const title = defaultSettings.title || '胜天半子'
export default function getPageTitle() {
getBaseSettingTitle({ type: 'SHOP' }).then(res => {
if (res.code == 1) {
document.title = res.data
}
})
}
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论