Explorar o código

promise 报错IE

zhangxc %!s(int64=4) %!d(string=hai) anos
pai
achega
5d52460900
Modificáronse 2 ficheiros con 9 adicións e 2 borrados
  1. 1 1
      src/html/cdss.html
  2. 8 1
      src/js/cdss.js

+ 1 - 1
src/html/cdss.html

@@ -43,7 +43,7 @@
             <p class="responsibility"></p>
             <div class="disclaimer clearfix">
               <span class="version-tip">版本说明</span>
-              <span class="logo">&copy 朗通医疗</span>
+              <span class="logo">&copy; 朗通医疗</span>
               <span class="disclaimerInfo">免责声明</span>
             </div>
           </div>

+ 8 - 1
src/js/cdss.js

@@ -1,4 +1,11 @@
-var Promise = require("bluebird");
+if(!Promise){
+  var Promise = require("bluebird");
+// Configure
+  Promise.config({
+    longStackTraces: true,
+    warnings: true // note, run node with --trace-warnings to see full stack traces for warnings
+  })
+}
 require('./../css/reset.css');
 require('./../css/cdss.less');
 require('./../css/popup.css');