Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
易企天创
zendata
提交
5c86f06e
Z
zendata
项目概览
易企天创
/
zendata
10 个月 前同步成功
通知
17
Star
2
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Z
zendata
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
5c86f06e
编写于
3月 01, 2023
作者:
aaronchen2k2k
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix issues
上级
ed7b7039
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
25 addition
and
4 deletion
+25
-4
ui/src/layout/MainLayout.less
ui/src/layout/MainLayout.less
+3
-0
ui/src/layout/Update.vue
ui/src/layout/Update.vue
+22
-4
未找到文件。
ui/src/layout/MainLayout.less
浏览文件 @
5c86f06e
...
...
@@ -101,4 +101,7 @@ a.common {
.link {
cursor: pointer;
}
.errors {
color: red;
}
\ No newline at end of file
ui/src/layout/Update.vue
浏览文件 @
5c86f06e
...
...
@@ -10,10 +10,16 @@
<div>
发现新的版本
<b>
{{
newVersion
}}
</b>
,请确定是否升级。
</div>
<div
v-if=
"downloadingPercent > 0"
>
<a-progress
:percent=
"downloadingPercent"
/>
</div>
<div
v-if=
"errMsg"
class=
"errors"
>
<div
class=
"border"
>
升级错误,请联系管理员。
</div>
<div>
{{
errMsg
}}
</div>
</div>
<template
#footer
>
<div
v-if=
"!updateSuccess"
>
<a-button
@
click=
"update"
type=
"primary"
>
立即升级
</a-button>
...
...
@@ -51,6 +57,7 @@ export default {
let
ipcRenderer
=
undefined
let
version
=
null
let
updateSuccess
=
false
let
errMsg
=
''
return
{
isVisible
,
...
...
@@ -62,6 +69,7 @@ export default {
isElectron
,
version
,
updateSuccess
,
errMsg
,
}
},
...
...
@@ -97,9 +105,11 @@ export default {
})
this
.
ipcRenderer
.
on
(
electronMsgDownloadSuccess
,
async
(
event
,
data
)
=>
{
console
.
log
(
'
md5 checking success msg from electron
'
,
data
);
this
.
updateSuccess
=
true
})
this
.
ipcRenderer
.
on
(
electronMsgUpdateFail
,
async
(
event
,
data
)
=>
{
console
.
log
(
'
downloading fail msg from electron
'
,
data
);
this
.
errMsg
=
data
.
err
})
}
},
...
...
@@ -145,11 +155,19 @@ export default {
position: absolute;
right: 5px;
bottom: 0;
.update-modal{
.ant-modal-footer {
text-align: center;
}
.update-modal{
.ant-modal-footer {
text-align: center;
}
.errors {
margin-top: 12px;
.border {
margin-bottom: 3px;
font-weight: bolder;
}
}
}
</
style
>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录