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

feat: 系统升级提醒

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