Commit c6c4bb65 authored by 吴冠's avatar 吴冠

更新

parent 44cfaf49
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
</div> </div>
</template> </template>
<> <script>
import { put, getFileNameUUID } from "~/api/ali-oss"; import { put, getFileNameUUID } from "~/api/ali-oss";
export default { export default {
...@@ -112,7 +112,7 @@ export default { ...@@ -112,7 +112,7 @@ export default {
*/ */
handleUpload(option) { handleUpload(option) {
const max = this.max; const max = this.max;
const isLt2M = option.file.size / 1024 / 1024 <script max; const isLt2M = option.file.size / 1024 / 1024 < max;
if (isLt2M) { if (isLt2M) {
// 生成的文件名称 // 生成的文件名称
let objName = getFileNameUUID(); let objName = getFileNameUUID();
...@@ -130,6 +130,4 @@ export default { ...@@ -130,6 +130,4 @@ export default {
}, },
}; };
</script> </script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped></style> <style scoped></style>
...@@ -820,7 +820,7 @@ export default { ...@@ -820,7 +820,7 @@ export default {
fileList: [], fileList: [],
flag: true, //该值变化,就会触发刷新 flag: true, //该值变化,就会触发刷新
code: "", //刷新后的验证码 code: "", //刷新后的验证码
active: 1, active: 0,
checked: true, checked: true,
adminform: { adminform: {
name: "", name: "",
......
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