Эх сурвалжийг харах

部署后提示用户更新19

tyler 2 жил өмнө
parent
commit
415f3aafd8
1 өөрчлөгдсөн 1 нэмэгдсэн , 3 устгасан
  1. 1 3
      src/App.vue

+ 1 - 3
src/App.vue

@@ -14,7 +14,7 @@ export default {
     const language = store.state.app.language
     const language = store.state.app.language
     document.body.addEventListener('plugin_web_update_notice', (e) => {
     document.body.addEventListener('plugin_web_update_notice', (e) => {
       const { version, options } = e.detail
       const { version, options } = e.detail
-      // write some code, show your custom notification and etc.
+      // write some code, show your custom notification.
       console.log(version, options)
       console.log(version, options)
       if (language === 'en') {
       if (language === 'en') {
         self.$confirm('System update detected, please refresh the page?', '📢 System update', {
         self.$confirm('System update detected, please refresh the page?', '📢 System update', {
@@ -25,7 +25,6 @@ export default {
           cancelButtonText: 'dismiss'
           cancelButtonText: 'dismiss'
         })
         })
           .then(() => {
           .then(() => {
-            // self.$router.go(0)
             location.reload()
             location.reload()
             self.$message({
             self.$message({
               type: 'info',
               type: 'info',
@@ -49,7 +48,6 @@ export default {
           cancelButtonText: '放弃'
           cancelButtonText: '放弃'
         })
         })
           .then(() => {
           .then(() => {
-            // self.$router.go(0)
             location.reload()
             location.reload()
             self.$message({
             self.$message({
               type: 'info',
               type: 'info',