| @@ -51,7 +51,7 @@ export default { | |||||
| } | } | ||||
| }).catch(err => { | }).catch(err => { | ||||
| if (err.response.status == 401) { // 未登陆 | if (err.response.status == 401) { // 未登陆 | ||||
| window.location.href = '/user/login'; | |||||
| window.location.href = `/user/login?redirect_to=${encodeURIComponent(window.location.href)}`; | |||||
| } else { | } else { | ||||
| console.log(err); | console.log(err); | ||||
| } | } | ||||
| @@ -12,17 +12,17 @@ | |||||
| <span class="title-1"> / </span> | <span class="title-1"> / </span> | ||||
| <span class="title-2" v-html="data.NameShow"></span> | <span class="title-2" v-html="data.NameShow"></span> | ||||
| </a> | </a> | ||||
| <i v-if="data.IsArchived" class="archive icon archived-icon"></i> | |||||
| <svg v-if="(data.IsPrivate || data.IsOwnerPrivate)" class="svg octicon-lock" width="15" height="15" | |||||
| aria-hidden="true"> | |||||
| <use xlink:href="#octicon-lock"></use> | |||||
| </svg> | |||||
| <i v-if="data.IsArchived" class="archive icon archived-icon"></i> | |||||
| <svg v-if="data.IsFork" class="svg octicon-repo-forked" width="15" height="15" aria-hidden="true"> | <svg v-if="data.IsFork" class="svg octicon-repo-forked" width="15" height="15" aria-hidden="true"> | ||||
| <use xlink:href="#octicon-repo-forked"></use> | <use xlink:href="#octicon-repo-forked"></use> | ||||
| </svg> | </svg> | ||||
| <svg v-if="data.IsMirror" class="svg octicon-repo-clone" width="15" height="15" aria-hidden="true"> | <svg v-if="data.IsMirror" class="svg octicon-repo-clone" width="15" height="15" aria-hidden="true"> | ||||
| <use xlink:href="#octicon-repo-clone"></use> | <use xlink:href="#octicon-repo-clone"></use> | ||||
| </svg> | </svg> | ||||
| <svg v-if="(data.IsPrivate || data.IsOwnerPrivate)" style="color:#a1882b!important" class="svg octicon-lock" width="15" height="15" | |||||
| aria-hidden="true"> | |||||
| <use xlink:href="#octicon-lock"></use> | |||||
| </svg> | |||||
| </div> | </div> | ||||
| <span class="title-r"> | <span class="title-r"> | ||||
| <span class="t-item" :title="$t('repos.watch')"> | <span class="t-item" :title="$t('repos.watch')"> | ||||
| @@ -103,7 +103,7 @@ export default { | |||||
| let dataJ = data[j]; | let dataJ = data[j]; | ||||
| if (dataJ === undefined) break; | if (dataJ === undefined) break; | ||||
| html += `<div class="_repo_sw_card"><div style="display:flex;"> | html += `<div class="_repo_sw_card"><div style="display:flex;"> | ||||
| ${dataJ["Avatar"] ? `<img style="border-radius:100%;width:35px;height:35px;margin-bottom:0.6em;" class="left floated mini ui image" src="${dataJ["Avatar"]}">` | |||||
| ${dataJ["RelAvatarLink"] ? `<img style="border-radius:100%;width:35px;height:35px;margin-bottom:0.6em;" class="left floated mini ui image" src="${dataJ["RelAvatarLink"]}">` | |||||
| : `<img style="border-radius:100%;width:35px;height:35px;margin-bottom:0.6em;" class="left floated mini ui image" avatar="${dataJ["OwnerName"]}">`} | : `<img style="border-radius:100%;width:35px;height:35px;margin-bottom:0.6em;" class="left floated mini ui image" avatar="${dataJ["OwnerName"]}">`} | ||||
| <span class="header nowrap" style="color:rgb(50, 145, 248);font-size:14px;height:35px;line-height:35px;" href="javascript:;" title="${dataJ["Alias"]}">${dataJ["Alias"]}</span> | <span class="header nowrap" style="color:rgb(50, 145, 248);font-size:14px;height:35px;line-height:35px;" href="javascript:;" title="${dataJ["Alias"]}">${dataJ["Alias"]}</span> | ||||
| </div><div class="_repo_sw_card_descr _repo_nowrap_line_3" title="${dataJ.Description}">${dataJ.Description}</div> | </div><div class="_repo_sw_card_descr _repo_nowrap_line_3" title="${dataJ.Description}">${dataJ.Description}</div> | ||||