fix: update dialog
This commit is contained in:
parent
55133fcedd
commit
6c4432aeba
|
@ -5,9 +5,9 @@
|
||||||
<div class="version">✨ {{ version }} 🚀</div>
|
<div class="version">✨ {{ version }} 🚀</div>
|
||||||
<div v-if="newRelease" class="releaseNotes">
|
<div v-if="newRelease" class="releaseNotes">
|
||||||
<Mfm :text="data.notes"/>
|
<Mfm :text="data.notes"/>
|
||||||
<!-- <div v-if="data.screenshots.length > 0" style="max-width: 500">
|
<div v-if="data.screenshots.length > 0" style="max-width: 500">
|
||||||
<img v-for="i in data.screenshots" :key="i" :src="i"/>
|
<img v-for="i in data.screenshots" :key="i" :src="i"/>
|
||||||
</div> -->
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<MkButton class="gotIt" primary full @click="modal.close()">{{ i18n.ts.gotIt }}</MkButton>
|
<MkButton class="gotIt" primary full @click="modal.close()">{{ i18n.ts.gotIt }}</MkButton>
|
||||||
</div>
|
</div>
|
||||||
|
@ -24,8 +24,9 @@ import * as os from '@/os';
|
||||||
|
|
||||||
const modal = $ref<InstanceType<typeof MkModal>>();
|
const modal = $ref<InstanceType<typeof MkModal>>();
|
||||||
|
|
||||||
let newRelease = false;
|
let newRelease = $ref(false);
|
||||||
let data;
|
let data = $ref(Object);
|
||||||
|
|
||||||
os.api('release').then(res => {
|
os.api('release').then(res => {
|
||||||
data = res;
|
data = res;
|
||||||
newRelease = (version === data?.version);
|
newRelease = (version === data?.version);
|
||||||
|
|
Loading…
Reference in New Issue