testing
This commit is contained in:
parent
19c88fc68b
commit
0a3e39b6ec
2 changed files with 13 additions and 1 deletions
|
@ -15,6 +15,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
|
import { shallowRef } from 'vue';
|
||||||
import MkModal from '@/components/MkModal.vue';
|
import MkModal from '@/components/MkModal.vue';
|
||||||
import MkSparkle from '@/components/MkSparkle.vue';
|
import MkSparkle from '@/components/MkSparkle.vue';
|
||||||
import MkButton from '@/components/MkButton.vue';
|
import MkButton from '@/components/MkButton.vue';
|
||||||
|
@ -22,7 +23,7 @@ import { version } from '@/config';
|
||||||
import { i18n } from '@/i18n';
|
import { i18n } from '@/i18n';
|
||||||
import * as os from '@/os';
|
import * as os from '@/os';
|
||||||
|
|
||||||
const modal = $ref<InstanceType<typeof MkModal>>();
|
const modal = shallowRef<InstanceType<typeof MkModal>>();
|
||||||
|
|
||||||
let newRelease = $ref(false);
|
let newRelease = $ref(false);
|
||||||
let data = $ref(Object);
|
let data = $ref(Object);
|
||||||
|
@ -31,6 +32,7 @@ os.api('release').then(res => {
|
||||||
data = res;
|
data = res;
|
||||||
newRelease = (version === data?.version);
|
newRelease = (version === data?.version);
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(`Version: ${version}`)
|
console.log(`Version: ${version}`)
|
||||||
console.log(`Data version: ${data.version}`)
|
console.log(`Data version: ${data.version}`)
|
||||||
console.log(newRelease)
|
console.log(newRelease)
|
||||||
|
|
|
@ -251,6 +251,16 @@ import { getAccountFromId } from "@/scripts/get-account-from-id";
|
||||||
|
|
||||||
// クライアントが更新されたか?
|
// クライアントが更新されたか?
|
||||||
const lastVersion = localStorage.getItem("lastVersion");
|
const lastVersion = localStorage.getItem("lastVersion");
|
||||||
|
|
||||||
|
// TESTING
|
||||||
|
|
||||||
|
popup(
|
||||||
|
defineAsyncComponent(() => import("@/components/MkUpdated.vue")),
|
||||||
|
{},
|
||||||
|
{},
|
||||||
|
"closed",
|
||||||
|
);
|
||||||
|
|
||||||
if (lastVersion !== version) {
|
if (lastVersion !== version) {
|
||||||
localStorage.setItem("lastVersion", version);
|
localStorage.setItem("lastVersion", version);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue