mirror of
https://github.com/flipped-aurora/gin-vue-admin.git
synced 2026-09-22 12:48:17 +00:00
Merge branch 'main' into i18n-dev-new
This commit is contained in:
@@ -86,6 +86,20 @@ service.interceptors.response.use(
|
||||
},
|
||||
error => {
|
||||
closeLoading()
|
||||
|
||||
if(!error.response){
|
||||
ElMessageBox.confirm(`
|
||||
<p>检测到请求错误</p>
|
||||
<p>${error}</p>
|
||||
`, '请求报错', {
|
||||
dangerouslyUseHTMLString: true,
|
||||
distinguishCancelAndClose: true,
|
||||
confirmButtonText: '稍后重试',
|
||||
cancelButtonText: '取消'
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
switch (error.response.status) {
|
||||
case 500:
|
||||
ElMessageBox.confirm(`
|
||||
|
||||
Reference in New Issue
Block a user