去除重复代码

main
xuechunyuan 3 years ago
parent 40496c8754
commit c62d351299
  1. 3
      src/option/user/info.js

@ -107,9 +107,6 @@ export const userInfoOption = {
tip: '只能上传jpg/png用户头像,且不超过500kb',
span: 12,
row: true,
prop: 'avatar',
tip: '只能上传jpg/png用户头像,且不超过500kb',
action: '/api/blade-resource/oss/endpoint/put-file',
uploadBefore: (file, done, loading) => {
if (['image/png', 'image/jpeg'].indexOf(file.type) == -1) {
Message({

Loading…
Cancel
Save