|
|
|
@ -35,10 +35,10 @@ const {t} = useI18n();
|
|
|
|
|
const locale = (Cookies.get('language') || 'zhCn') === 'zhCn'
|
|
|
|
|
const {proxy} = getCurrentInstance();
|
|
|
|
|
const {sys_normal_disable} = proxy.useDict("sys_normal_disable");
|
|
|
|
|
const imageUrl = ref('http://localhost/dev-api/profile/avatar/2023/04/04/xy_logo_mini_20230404112436A006.png')
|
|
|
|
|
const imageUrl = ref('')
|
|
|
|
|
|
|
|
|
|
const form = reactive({
|
|
|
|
|
name: '',
|
|
|
|
|
imgUrl: '',
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const onSubmit = () => {
|
|
|
|
@ -50,6 +50,8 @@ const requestUpload = (e) => {
|
|
|
|
|
formData.append("avatarfile", e.file);
|
|
|
|
|
uploadImg(formData).then(response => {
|
|
|
|
|
console.log(response)
|
|
|
|
|
form.value.imgUrl = response.imgUrl
|
|
|
|
|
imageUrl.value = import.meta.env.VITE_APP_BASE_API+response.imgUrl
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|