浏览代码

Переход на quasar

Book Pauk 5 年之前
父节点
当前提交
b0da806f7a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      client/components/Reader/TextPage/TextPage.vue

+ 2 - 2
client/components/Reader/TextPage/TextPage.vue

@@ -423,7 +423,7 @@ class TextPage extends Vue {
                     if (this.lazyParseEnabled)
                     if (this.lazyParseEnabled)
                         this.lazyParsePara();
                         this.lazyParsePara();
                 } catch (e) {
                 } catch (e) {
-                    this.$alert(e.message, 'Ошибка', {type: 'error'});
+                    this.$root.stdDialog.alert(e.message, 'Ошибка', {type: 'negative'});
                 }
                 }
             })();
             })();
         }
         }
@@ -1132,7 +1132,7 @@ class TextPage extends Vue {
         if (url && url.indexOf('file://') != 0) {
         if (url && url.indexOf('file://') != 0) {
             window.open(url, '_blank');
             window.open(url, '_blank');
         } else {
         } else {
-            this.$alert('Оригинал недоступен, т.к. файл книги был загружен с локального диска', '', {type: 'warning'});
+            this.$root.stdDialog.alert('Оригинал недоступен, т.к. файл книги был загружен с локального диска.', ' ', {type: 'info'});
         }
         }
     }
     }