Commit c6c4bb65 authored by 吴冠's avatar 吴冠

更新

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