Przeglądaj źródła

beforeDestroy修改成beforeUnmount

yangzhijie 4 lat temu
rodzic
commit
edba83321a

+ 1 - 1
public/index.html

@@ -10,7 +10,7 @@
   <link rel="stylesheet" type="text/css" href="./bootstrap/css/bootstrap-dialog.min.css">
   <link rel="stylesheet" type="text/css" href="./bootstrap-treeview/bootstrap-treeview.css">
   <!-- 由于字体不能正常的加载,已经使用require css的方式,在main.js中,使用webpack加载css -->
-  <!-- <link rel="stylesheet" type="text/css" href="./summernote-0.8.18/summernote.css"> -->
+  <link rel="stylesheet" type="text/css" href="./summernote-0.8.18/summernote.min.css">
 
   <link rel="stylesheet" type="text/css" href="./dhtmlxgantt/dhtmlxgantt.css">
 

BIN
src/assets/font/summernote.eot


BIN
src/assets/font/summernote.ttf


BIN
src/assets/font/summernote.woff


BIN
src/assets/font/summernote.woff2


Plik diff jest za duży
+ 0 - 12
src/assets/summernote.css


+ 1 - 1
src/main.js

@@ -15,7 +15,7 @@ import Antd from 'ant-design-vue';
 
 // bug fixed by jack 
 // 在加载 css 的时候 font 不能被正确的加载
-import './assets/summernote.css';
+// import './assets/summernote.css';
 
 import 'ant-design-vue/dist/antd.css';
 

+ 1 - 1
src/trace/ProjectArchive.vue

@@ -489,7 +489,7 @@ export default {
     }, 300);
   },
 
-  unmounted: function () {},
+  beforeUnmount: function () {},
   methods: {
     /**
      * 清空文件

+ 1 - 1
src/trace/ProjectManagement.vue

@@ -565,7 +565,7 @@ module.exports = {
 
   },
 
-  beforeDestroy: function () {
+  beforeUnmount: function () {
     // if (window.ganttTimer != null) {
     //   window.clearInterval(ganttTimer);
     //   window.ganttTimer = null;

+ 1 - 1
src/trace/TraceCommentCreate.vue

@@ -138,7 +138,7 @@ export default {
     });
     _self.summernoteInitSuccess = true;
   },
-  unmounted: function () {
+  beforeUnmount: function () {
     if (this.summernoteInitSuccess == true) {
       $('#summernote').summernote('destroy');
     }

+ 2 - 1
src/trace/TraceCreate.vue

@@ -167,13 +167,14 @@ export default {
     _self.summernoteInitSuccess = true;
   },
 
-  unmounted: function () {
+  beforeUnmount: function () {
     if (this.summernoteInitSuccess == true) {
       $('#summernote').summernote('destroy');
     }
     //界面销毁时,修改插入连接的display属性
     $('.note-link-popover').removeAttr('style');
   },
+
   methods: {
     /**
          * 删除语音

+ 1 - 1
src/trace/TraceUpdate.vue

@@ -151,7 +151,7 @@ export default {
   },
 
 
-  unmounted: function () {
+  beforeUnmount: function () {
     if (this.summernoteInitSuccess == true) {
       $('#summernote').summernote('destroy');
     }

+ 1 - 1
src/widget/AudioField.vue

@@ -88,7 +88,7 @@ export default {
       flag: true,
     };
   },
-  unmounted: function () {
+  beforeUnmount: function () {
     if (this.recorder) {
       this.recorder.stop();
       this.clearTimer();

+ 1 - 1
webpack.prod.js

@@ -50,7 +50,7 @@ module.exports =  WebpackMerge.merge(baseConfig, {
     },
   },
 
-  //devtool: 'nosources-source-map', // 打包不需要 source-map
+  //devtool: 'source-map', // 打包不需要 source-map
 
 
   plugins: (module.exports.plugins || []).concat([

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików