mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 14:56:07 +08:00
修复ql update中reset操作
This commit is contained in:
parent
e260dcb985
commit
c51306ef27
|
@ -238,8 +238,8 @@ update_qinglong() {
|
|||
|
||||
local no_restart="$1"
|
||||
[ -f $dir_root/package.json ] && ql_depend_old=$(cat $dir_root/package.json)
|
||||
reset_romote_url ${dir_root} "${github_proxy_url}https://github.com/whyour/qinglong.git"
|
||||
git_pull_scripts $dir_root
|
||||
reset_romote_url ${dir_root} "${github_proxy_url}https://github.com/whyour/qinglong.git" "master"
|
||||
git_pull_scripts $dir_root "master"
|
||||
|
||||
if [[ $exit_status -eq 0 ]]; then
|
||||
echo -e "\n更新$dir_root成功...\n"
|
||||
|
@ -255,12 +255,8 @@ update_qinglong() {
|
|||
|
||||
local url="${github_proxy_url}https://github.com/whyour/qinglong-static.git"
|
||||
if [ -d ${ql_static_repo}/.git ]; then
|
||||
reset_romote_url ${ql_static_repo} ${url}
|
||||
cd ${ql_static_repo}
|
||||
git fetch --all
|
||||
exit_status=$?
|
||||
git reset --hard origin/master
|
||||
cd $dir_root
|
||||
reset_romote_url ${ql_static_repo} ${url} "master"
|
||||
git_pull_scripts ${ql_static_repo} "master"
|
||||
else
|
||||
git_clone_scripts ${url} ${ql_static_repo}
|
||||
fi
|
||||
|
|
|
@ -29,6 +29,9 @@ export default function (props: any) {
|
|||
history.push('/login');
|
||||
}
|
||||
vhCheck();
|
||||
|
||||
// patch custome layout title as react node [object, object]
|
||||
document.title = '控制面板';
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
|
@ -109,7 +112,6 @@ export default function (props: any) {
|
|||
},
|
||||
];
|
||||
}}
|
||||
pageTitleRender={() => '控制面板'}
|
||||
{...defaultProps}
|
||||
>
|
||||
{props.children}
|
||||
|
|
Loading…
Reference in New Issue
Block a user