提交 3e82498e 编写于 作者: guangjun.yang's avatar guangjun.yang

更改qiniu js的使用方式

上级 a927d987
...@@ -15,6 +15,6 @@ ...@@ -15,6 +15,6 @@
<router-view></router-view> <router-view></router-view>
</div> </div>
<!-- <script src="qiniu.min.js"></script> --> <!-- <script src="qiniu.min.js"></script> -->
<script src="https://unpkg.com/qiniu-js@2.2.0/dist/qiniu.min.js"></script> <!-- <script src="https://unpkg.com/qiniu-js@2.2.0/dist/qiniu.min.js"></script> -->
</body> </body>
</html> </html>
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
"fastclick": "^1.0.6", "fastclick": "^1.0.6",
"iscroll": "^5.2.0", "iscroll": "^5.2.0",
"js-cookie": "^2.2.0", "js-cookie": "^2.2.0",
"qiniu-js": "^3.1.2",
"showdown": "^1.6.4", "showdown": "^1.6.4",
"vue": "^2.1.0", "vue": "^2.1.0",
"vue-router": "^2.1.1", "vue-router": "^2.1.1",
......
...@@ -2,6 +2,7 @@ import {isEmptyUtils, isNotEmptyUtils, subString} from "./utils"; ...@@ -2,6 +2,7 @@ import {isEmptyUtils, isNotEmptyUtils, subString} from "./utils";
import fetchQiniu from './fetch-qiniu.js'; import fetchQiniu from './fetch-qiniu.js';
import { getQiniuToken1, uploadVideo, uploadImg } from './index' import { getQiniuToken1, uploadVideo, uploadImg } from './index'
import fetch from "./fetch"; import fetch from "./fetch";
const qiniu = require('qiniu-js');
let fileApiUrl = getQiniuToken1() let fileApiUrl = getQiniuToken1()
//该对象有一个 unsubscribe 方法取消订阅,同时终止上传行为。 //该对象有一个 unsubscribe 方法取消订阅,同时终止上传行为。
......
此差异已折叠。
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册