Merge pull request #266 from nakazawakan/fe_fix

fixed copy fuc
このコミットが含まれているのは:
chankan77 2022-01-13 18:37:48 +09:00 committed by GitHub
コミット 57ea3148e1
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
5個のファイルの変更53678行の追加51984行の削除

ファイルの表示

@ -12897,7 +12897,7 @@ categories: [project]
@font-face {
font-family: "iconfont";
src: url(/fonts/iconfont.eot?9bd2f8e21fb68f3cb69f306c7a5a07d2);
src: url(/fonts/iconfont.eot?9bd2f8e21fb68f3cb69f306c7a5a07d2) format("eot"), url(/fonts/iconfont.woff?72290a51f520574be856b3621acc29a1) format("woff"), url(/fonts/iconfont.ttf?e240ce427caf7549e576c77b39a1d3f1) format("truetype"), url(/fonts/iconfont.svg?d812f238f7ec32f5cb5ebd322f320a02) format("svg");
src: url(/fonts/iconfont.eot?9bd2f8e21fb68f3cb69f306c7a5a07d2) format("eot"), url(/fonts/iconfont.woff?72290a51f520574be856b3621acc29a1) format("woff"), url(/fonts/iconfont.ttf?e240ce427caf7549e576c77b39a1d3f1) format("truetype"), url(/fonts/iconfont.svg?9e48c54f8bbb472c1c286234fdd6636f) format("svg");
font-weight: normal;
font-style: normal;
}

105623
backend/public/js/app.js vendored

長すぎる行があるためファイル差分は表示されません

ファイルの表示

@ -15,8 +15,14 @@ const ContactComplete = () => {
.then(()=>{
setSuccess('メールアドレスのコビーに成功しました');
})
.catch(err=>{
setError('コピー失敗しました。');
.catch(()=>{
navigator.clipboard.writeText(contactEmail)
.then(()=>{
setSuccess('メールアドレスのコビーに成功しました');
})
.catch(()=>{
setError('コピー失敗しました。');
})
})
}

ファイルの表示

@ -51,13 +51,19 @@ const ParentChildAdd = () => {
setIsCheckRelation(false);
switch(response.data.status_code){
case 200: {
copy(inviteText)
navigator.clipboard.writeText(inviteText)
.then(()=>{
setSuccess('招待用URLをコピーしました。');
})
.catch(err=>{
set400Error('コピー失敗しました。');
});
.catch(()=>{
copy(inviteText)
.then(()=>{
setSuccess('招待用URLをコピーしました。');
})
.catch(()=>{
set400Error('コピー失敗しました。')
})
})
break;
}
case 400: set400Error(response.data.error_messages); break;

ファイルの表示

@ -172,12 +172,19 @@ const ParentMeetingDetail = () => {
}
const saveStorage = () => {
copy(`${meeting.father.company}さんより\n業務連絡のお知らせ\n新規業務連絡のご確認はこちら\n\nhttps://kikikan.xyz/c-account/meeting/detail/${params?.meeting_id}`)
let txt = `${meeting.father.company}さんより\n業務連絡のお知らせ\n新規業務連絡のご確認はこちら\n\nhttps://kikikan.xyz/c-account/meeting/detail/${params?.meeting_id}`;
copy(txt)
.then(()=>{
setSuccess('コピーしました。');
})
.catch(err=>{
set400Error('コピー失敗しました。');
.catch(()=>{
navigator.clipboard.writeText(txt)
.then(()=>{
setSuccess('コピーしました。');
})
.catch(()=>{
set400Error('コピー失敗しました。');
})
})
}