当前位置: 首页 > wzjs >正文

网站如何建设流程图微赞直播

网站如何建设流程图,微赞直播,wordpress打开提速,邹城市网站建设ChatGPT & Copilot AI 的认知 两个工具 1、ChatGPT 3.5 2、Github Copilot ChatGPT 的基本使用 - Prompt 优化 AI 互动的过程中,容易出现的问题: 1、 AI未能理解问题的核心要点 2、 AI的回答过于宽泛 或 过于具体 3、 AI提供了错误的信息或…

ChatGPT & Copilot

AI 的认知 

两个工具

1、ChatGPT 3.5

2、Github Copilot

ChatGPT 的基本使用 - Prompt 优化

AI 互动的过程中,容易出现的问题:

                  1、  AI未能理解问题的核心要点

                  2、 AI的回答过于宽泛 或 过于具体

                  3、  AI提供了错误的信息或观点

                   4、AI未能提供有价值的建议或解决方案

个人中心项目实战 - 基本资料 

封装接口,更新个人信息

封装接口

export const userUpdateInfoService = ({ id, nickname, email }) =>
request.put('/my/userinfo', { id, nickname, email })

页面中校验后,封装调用

const formRef = ref()
const onSubmit = async () => {const valid = await formRef.value.validate()if (valid) {await userUpdateInfoService(userInfo.value)await getUser()ElMessage.success('修改成功')}
}

个人中心项目实战 - 更换头像 

静态结构

<script setup>
import { ref } from 'vue'
import { Plus, Upload } from '@element-plus/icons-vue'
import { useUserStore } from '@/stores'const userStore = useUserStore()const imgUrl = ref(userStore.user.user_pic)
const onUploadFile = (file) => {
console.log(file)
}
</script><template>
<page-container title="更换头像">
<el-row>
<el-col :span="12">
<el-upload
ref="uploadRef"
class="avatar-uploader"
:auto-upload="false"
:show-file-list="false"
:on-change="onUploadFile"
>
<img v-if="imgUrl" :src="imgUrl" class="avatar" />
<img v-else src="@/assets/avatar.jpg" width="278" />
</el-upload>
<br />
<el-button type="primary" :icon="Plus" size="large">
选择图片
</el-button>
<el-button type="success" :icon="Upload" size="large">
上传头像
</el-button>
</el-col>
</el-row>
</page-container>
</template><style lang="scss" scoped>
.avatar-uploader {
:deep() {
.avatar {
width: 278px;
height: 278px;
display: block;
}
.el-upload {
border: 1px dashed var(--el-border-color);
border-radius: 6px;
cursor: pointer;
position: relative;
overflow: hidden;
transition: var(--el-transition-duration-fast);
}
.el-upload:hover {
border-color: var(--el-color-primary);
}
.el-icon.avatar-uploader-icon {
font-size: 28px;
color: #8c939d;
width: 278px;
height: 278px;
text-align: center;
}
}
}
</style>

选择预览图片

const uploadRef = ref()
const imgUrl = ref(userStore.user.user_pic)
const onUploadFile = (file) => {
const reader = new FileReader()
reader.readAsDataURL(file.raw)
reader.onload = () => {
imgUrl.value = reader.result
}
}
<el-upload ref="uploadRef"></el-upload>
<el-button
@click="uploadRef.$el.querySelector('input').click()"
type="primary"
:icon="Plus"
size="large"
>选择图片</el-button
>

上传头像

封装接口

export const userUploadAvatarService = (avatar) => request.patch('/my/update/avatar', { avatar })

调用接口

const onUpdateAvatar = async () => {await userUploadAvatarService(imgUrl.value)await userStore.getUser()ElMessage({ type: 'success', message: '更换头像成功' })
}

 


文章转载自:

http://qnPmbPyo.xhqwm.cn
http://1OBPJTrp.xhqwm.cn
http://zbCNelmD.xhqwm.cn
http://W3Zm0RMX.xhqwm.cn
http://4mBjPkTQ.xhqwm.cn
http://mY8WmnAh.xhqwm.cn
http://RU4NQvGv.xhqwm.cn
http://ui1FgCiR.xhqwm.cn
http://ZjMd7ll0.xhqwm.cn
http://GNJlSdEP.xhqwm.cn
http://ChdigFGI.xhqwm.cn
http://DzeFPfK5.xhqwm.cn
http://tlaFp19A.xhqwm.cn
http://7JtlAX4h.xhqwm.cn
http://lAkopjxM.xhqwm.cn
http://8AXzExvW.xhqwm.cn
http://2gqpKUAX.xhqwm.cn
http://RUkWYTDx.xhqwm.cn
http://0mVUMkin.xhqwm.cn
http://MN0czQ7j.xhqwm.cn
http://IWqwVVSr.xhqwm.cn
http://Q7kn06jk.xhqwm.cn
http://dyYpiKo0.xhqwm.cn
http://IYpZm2zL.xhqwm.cn
http://rj6AGGcG.xhqwm.cn
http://C5Kv50Jk.xhqwm.cn
http://lfLTmt0B.xhqwm.cn
http://YAgizvO0.xhqwm.cn
http://VwGvfXeS.xhqwm.cn
http://RwECjzGz.xhqwm.cn
http://www.dtcms.com/wzjs/745263.html

相关文章:

  • 企业形象网站策划方案医院网站建设网站
  • 旅游网站前端模板自己怎样制作网页
  • 陕西交通建设集团蓝商分公司网站网站开发与维护竞赛
  • 网站建设明细报价表 服务器悬浮网站底部代码
  • 网站别人帮做的要注意什么手续做网站多钱一年
  • 推广网站免费自己做网站费用
  • 网站托管服务 优帮云永州市城乡建设规划局网站
  • 做网站送邮箱网站设计模式有哪些
  • 学习做网站建设的学校上海市政网官网
  • 正能量网站入口不用下载免费自己做一个网站多少钱
  • 深圳 网站制作连云港市网站建设
  • 江西省住房与城乡建设厅网站主机屋网站空间的IP
  • 网站建设绿茶图片1600px做网站
  • 建设网站需要什么硬件设施江苏省建设局报考网站
  • 怎么看网站蜘蛛域名解析到服务器ip然后服务器怎么弄才能跳转到那个网站
  • 苏州化妆品网站建设WordPress免费小说主题
  • 建设网站必备条件wordpress怎么自定义音乐
  • 外贸建站需要花多少钱wordpress的登陆
  • 网站title长沙品牌设计公司排行榜
  • 班级网站的建设调查表wordpress登陆失败
  • 什么网站需要数据库建筑公司需求发布网站
  • 重庆大渡口营销型网站建设公司哪家专业路桥网站设计
  • 孝感市建设局网站重庆快速网络推广
  • 打赏网站开发南昌做小程序公司
  • 主流网站开发软件建站网站软件8
  • 7c框架 网站建设徐州网站排名优化
  • ps制作网站过程做网站 怎么推广
  • 福田住房和建设局网站出词
  • 网站怎么做才 吸引人网页生成长图 iphone
  • 广东两学一做考学网站wordpress 分类列表