提交 5c215b54 编写于 作者: xinglee23's avatar xinglee23

feat: 系统升级提醒

上级 517e54d1
...@@ -235,10 +235,10 @@ export default { ...@@ -235,10 +235,10 @@ export default {
systemUpdateConfig() systemUpdateConfig()
.then((res) => { .then((res) => {
if (Number(res.data.type) === 1) { if (Number(res.data.type) === 1) {
modal.open(1); modal.open(1, res.data.imageUrl);
} }
if (Number(res.data.type) === 2) { if (Number(res.data.type) === 2) {
modal.open(2); modal.open(2, res.data.imageUrl);
} }
}) })
.catch(() => { .catch(() => {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<img <img
width="680" width="680"
height="705" height="705"
src="https://files.yunqueyi.com/image/png/common/2024070411381441.png" :src="imageUrl"
/> />
<img <img
class="close" class="close"
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
@click="close" @click="close"
/> />
</div> </div>
<img v-if="type === 2" width="680" height="474" src="https://files.yunqueyi.com/image/png/common/2024070411371293.png" /> <img v-if="type === 2" width="680" height="474" :src="imageUrl" />
</div> </div>
</template> </template>
...@@ -23,12 +23,15 @@ export default { ...@@ -23,12 +23,15 @@ export default {
return { return {
type: 1, type: 1,
visible: false, visible: false,
imageUrl: null,
defaultImageUrl: 'https://files.yunqueyi.com/image/png/common/2024070411371293.png',
}; };
}, },
methods: { methods: {
open(type) { open(type, imageUrl) {
this.visible = true; this.visible = true;
this.type = type; this.type = type;
this.imageUrl = imageUrl || this.defaultImageUrl;
}, },
close() { close() {
this.visible = false; this.visible = false;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册