Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Whuihuan committed Apr 25, 2021
1 parent 0ac2c62 commit 58ecfbc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/public/js/ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,12 +301,12 @@ $().ready(() => {
};
},
created() {
this.checkUpdate();
chrome.storage.local.get(["info"], (res) => {
if (res.info) {
this.ver = res.info.ver;
}
});
this.checkUpdate();
},
watch: {
ver(newval, oldval) {
Expand Down Expand Up @@ -350,6 +350,7 @@ $().ready(() => {
window.location.href = `${this.homepage}/releases`;
},
isNewVer(curVer, newVer) {
console.log(curVer, newVer);
if (curVer < newVer) {
$.get(`${apiurl}Ver.php?ver=${newVer}`, (res) => {
this.$alert(res, `我的THBWiki ${newVer}更新日志`, {
Expand Down

0 comments on commit 58ecfbc

Please sign in to comment.