Commit 0bcb729a authored by wangtao's avatar wangtao

'ss'

parent 2e3dd108
......@@ -18,5 +18,5 @@
</head>
<body>
<div id="root"></div>
<script type="text/javascript" src="https://cdn.img.shangjiadao.cn/qingxiao/biz/dist/main.3d780e.js"></script></body>
<script type="text/javascript" src="https://cdn.img.shangjiadao.cn/qingxiao/biz/dist/main.fdbac2.js"></script></body>
</html>
\ No newline at end of file
......@@ -137,6 +137,7 @@ export default {
const file = files.files ? files.files[0] : null;
uploaderLoading();
const filename = `${signature.dir}${getRandomFilename(file.name)}`;
console.log(filename, 'filename');
const params = {
key: filename,
policy: signature.policy,
......
......@@ -13,7 +13,7 @@ function decode(data) {
}
function getRandomFilename(filename) {
const file = filename.match(/^(.*)(\.[A-z]+)$/);
return file === null ? md5(String(Date.now() + Math.random()) + filename) : (md5(String(Date.now() + Math.random()) + file[1]) + file[2]);
return md5(String(Date.now() + Math.random()));
}
// export function imagify(src, params) {
// let url = src || '';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment