Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

头像好像只能通过数据库修改才可以改变 #22

Open
1404040538 opened this issue Dec 27, 2023 · 6 comments
Open

头像好像只能通过数据库修改才可以改变 #22

1404040538 opened this issue Dec 27, 2023 · 6 comments

Comments

@1404040538
Copy link

如果只是在首页修改头像那么这个头像就会进入到docs数据表中,但是头像的判断是依据staff数据表中avatar是否存在而进行显示的。但是数据中没有改变avatar的方法导致头像一直不可用。

@fellow-me
Copy link
Owner

image
home/index.vue

@1404040538
Copy link
Author

请问您是加了什么东西吗,我的这个回调函数是灰色的。

Snipaste_2023-12-27_16-23-11

@fellow-me
Copy link
Owner

并没有加什么东西,它具体的操作,你可以点进去看一看

@1404040538
Copy link
Author

我把项目开始的那个测试文件删了,应该不影响把。我在网络上找攻略都叫我在script中添加这样的代码
Snipaste_2023-12-27_16-42-2322
请问在其他地方有关于这个回调的定义吗,还是所这个handleUploadSuccess是系统自带的。

1 similar comment
@1404040538
Copy link
Author

我把项目开始的那个测试文件删了,应该不影响把。我在网络上找攻略都叫我在script中添加这样的代码
Snipaste_2023-12-27_16-42-2322
请问在其他地方有关于这个回调的定义吗,还是所这个handleUploadSuccess是系统自带的。

@fellow-me
Copy link
Owner

这个handleUploadSuccess是自己的定义的,你可以去element-ui官网看一下el-upload组件是如何使用的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants