mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-09 23:16:18 +08:00
添加语雀头像显示
This commit is contained in:
parent
bb47d4c01f
commit
1086970e20
@ -1,6 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<q-card>
|
<q-card>
|
||||||
<q-card-section>
|
<q-card-section>
|
||||||
|
<div v-show="!!yuQueInfo.avatar" class="q-pa-sm">
|
||||||
|
<q-avatar class="q-mr-sm">
|
||||||
|
<q-img :src="yuQueInfo.avatar" />
|
||||||
|
</q-avatar>
|
||||||
|
{{ yuQueInfo.authorName }}
|
||||||
|
</div>
|
||||||
<div class="full-width">
|
<div class="full-width">
|
||||||
<q-input
|
<q-input
|
||||||
standout="bg-primary text-white"
|
standout="bg-primary text-white"
|
||||||
@ -64,6 +70,7 @@ export default {
|
|||||||
yuQueToken: "",
|
yuQueToken: "",
|
||||||
authorId: "",
|
authorId: "",
|
||||||
authorName: "",
|
authorName: "",
|
||||||
|
avatar: "",
|
||||||
repo: 1,
|
repo: 1,
|
||||||
},
|
},
|
||||||
maxCommandSize: 5 * 1024 * 1024,
|
maxCommandSize: 5 * 1024 * 1024,
|
||||||
@ -140,6 +147,7 @@ export default {
|
|||||||
let res = await window.yuQueClient("user");
|
let res = await window.yuQueClient("user");
|
||||||
this.yuQueInfo.authorId = res.data.data.account_id;
|
this.yuQueInfo.authorId = res.data.data.account_id;
|
||||||
this.yuQueInfo.authorName = res.data.data.name;
|
this.yuQueInfo.authorName = res.data.data.name;
|
||||||
|
this.yuQueInfo.avatar = res.data.data.avatar_url;
|
||||||
this.saveYuQueInfo();
|
this.saveYuQueInfo();
|
||||||
quickcommand.showMessageBox("设置成功~");
|
quickcommand.showMessageBox("设置成功~");
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user