Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录
切换导航
S
shop-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
王天霸
shop-new
Commits
ce65efdf
提交
ce65efdf
authored
4月 28, 2022
作者:
王天霸
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
title
上级
5c81994d
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
46 行增加
和
36 行删除
+46
-36
Navbar.vue
src/layout/components/Navbar.vue
+1
-1
Logo.vue
src/layout/components/Sidebar/Logo.vue
+19
-9
index.vue
src/layout/index.vue
+5
-5
settings.js
src/settings.js
+1
-1
user.js
src/store/modules/user.js
+19
-5
get-page-title.js
src/utils/get-page-title.js
+1
-15
没有找到文件。
src/layout/components/Navbar.vue
浏览文件 @
ce65efdf
...
@@ -109,7 +109,7 @@ export default {
...
@@ -109,7 +109,7 @@ export default {
watch
:
{
watch
:
{
channelInfo
()
{
channelInfo
()
{
if
(
this
.
channelInfo
)
{
if
(
this
.
channelInfo
)
{
this
.
channel_id
=
this
.
channelInfo
.
channel_site
[
0
]
.
channel_id
this
.
channel_id
=
this
.
$store
.
state
.
user
.
channelInfo
.
channel_id
}
}
},
},
},
},
...
...
src/layout/components/Sidebar/Logo.vue
浏览文件 @
ce65efdf
...
@@ -35,21 +35,31 @@ export default {
...
@@ -35,21 +35,31 @@ export default {
}
}
},
},
computed
:
{
computed
:
{
channelInfo
()
{
return
this
.
$store
.
getters
.
channelInfo
}
},
},
watch
:
{
watch
:
{
channelInfo
()
{
this
.
title
=
this
.
channelInfo
.
channel_site
[
0
].
base_setting_res
.
name
},
this
.
logo
=
this
.
channelInfo
.
channel_site
[
0
].
base_setting_res
.
logo
created
()
{
document
.
title
=
this
.
channelInfo
.
channel_site
[
0
].
base_setting_res
.
title
const
data
=
{
},
type
:
2
,
site_type
:
4
}
this
.
$store
.
dispatch
(
'getChannelSiteInfo'
,
data
).
then
(
res
=>
{
this
.
getlog
()
})
},
},
mounted
()
{
mounted
()
{
// this.getBackDetailsView()
},
},
methods
:
{
methods
:
{
getlog
(){
let
logotitle
=
this
.
$store
.
state
.
user
.
channelInfo
this
.
title
=
logotitle
.
title
this
.
logo
=
logotitle
.
imgUrl
document
.
title
=
logotitle
.
documentTitle
}
// getBackDetailsView() {
// getBackDetailsView() {
// let params = {
// let params = {
// type: 2,
// type: 2,
...
...
src/layout/index.vue
浏览文件 @
ce65efdf
...
@@ -50,11 +50,11 @@ export default {
...
@@ -50,11 +50,11 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
const
data
=
{
//
const data = {
type
:
2
,
//
type: 2,
site_type
:
4
//
site_type: 4
}
//
}
this
.
$store
.
dispatch
(
'getChannelSiteInfo'
,
data
)
//
this.$store.dispatch('getChannelSiteInfo', data)
},
},
methods
:
{
methods
:
{
handleClickOutside
()
{
handleClickOutside
()
{
...
...
src/settings.js
浏览文件 @
ce65efdf
module
.
exports
=
{
module
.
exports
=
{
title
:
'
云仓管理系统
'
,
title
:
''
,
/**
/**
* 是否系统布局配置
* 是否系统布局配置
...
...
src/store/modules/user.js
浏览文件 @
ce65efdf
...
@@ -18,7 +18,12 @@ const user = {
...
@@ -18,7 +18,12 @@ const user = {
// 3-审核拒绝;
// 3-审核拒绝;
applyState
:
-
1
,
applyState
:
-
1
,
cateFee
:
0
,
cateFee
:
0
,
channelInfo
:
null
channelInfo
:
{
title
:
''
,
imgUrl
:
''
,
documentTitle
:
''
,
channel_id
:
''
}
},
},
mutations
:
{
mutations
:
{
...
@@ -59,8 +64,17 @@ const user = {
...
@@ -59,8 +64,17 @@ const user = {
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
backDetailsView
(
data
).
then
(
response
=>
{
backDetailsView
(
data
).
then
(
response
=>
{
if
(
response
.
code
==
1
)
{
if
(
response
.
code
==
1
)
{
commit
(
'SET_CHANNELINFO'
,
response
.
data
)
let
date
=
{
title
:
response
.
data
.
channel_site
[
0
].
base_setting_res
.
name
,
imgUrl
:
response
.
data
.
channel_site
[
0
].
base_setting_res
.
logo
,
documentTitle
:
response
.
data
.
channel_site
[
0
].
base_setting_res
.
title
,
channel_id
:
response
.
data
.
channel_site
[
0
].
channel_id
}
commit
(
'SET_CHANNELINFO'
,
date
)
resolve
(
response
)
}
}
}).
catch
(
error
=>
{
reject
(
error
)
})
})
})
})
},
},
...
@@ -140,17 +154,17 @@ const user = {
...
@@ -140,17 +154,17 @@ const user = {
var
link
=
document
.
querySelector
(
"link[rel*='icon']"
)
||
document
.
createElement
(
'link'
);
var
link
=
document
.
querySelector
(
"link[rel*='icon']"
)
||
document
.
createElement
(
'link'
);
link
.
type
=
'image/x-inon'
;
link
.
type
=
'image/x-inon'
;
link
.
rel
=
'icon'
;
link
.
rel
=
'icon'
;
link
.
href
=
'
<%= BASE_URL %>
icon.ico'
link
.
href
=
'
/
icon.ico'
document
.
getElementsByTagName
(
'head'
)[
0
].
appendChild
(
link
);
document
.
getElementsByTagName
(
'head'
)[
0
].
appendChild
(
link
);
}
else
{
}
else
{
var
link
=
document
.
querySelector
(
"link[rel*='icon']"
)
||
document
.
createElement
(
'link'
);
var
link
=
document
.
querySelector
(
"link[rel*='icon']"
)
||
document
.
createElement
(
'link'
);
link
.
type
=
'image/x-inon'
;
link
.
type
=
'image/x-inon'
;
link
.
rel
=
'icon'
;
link
.
rel
=
'icon'
;
link
.
href
=
'
<%= BASE_URL %>
favicon.ico'
link
.
href
=
'
/
favicon.ico'
document
.
getElementsByTagName
(
'head'
)[
0
].
appendChild
(
link
);
document
.
getElementsByTagName
(
'head'
)[
0
].
appendChild
(
link
);
}
}
document
.
title
=
response
.
data
.
channel_site
[
0
].
title
//
document.title = response.data.channel_site[0].title
}
}
})
})
...
...
src/utils/get-page-title.js
浏览文件 @
ce65efdf
import
defaultSettings
from
'@/settings'
import
defaultSettings
from
'@/settings'
import
{
getBaseSettingTitle
}
from
'@/api/system/user'
const
title
=
defaultSettings
.
title
||
'胜天半子'
const
title
=
defaultSettings
.
title
||
'胜天半子'
\ No newline at end of file
export
default
function
getPageTitle
()
{
let
params
=
{
type
:
2
,
site_type
:
4
}
getBaseSettingTitle
(
params
).
then
(
res
=>
{
if
(
res
.
code
==
1
)
{
document
.
title
=
res
.
data
.
channel_site
[
0
].
base_setting_res
.
title
sessionStorage
.
setItem
(
'saveTitle'
,
res
.
data
.
channel_site
[
0
].
base_setting_res
.
title
)
}
})
}
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论