-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci(deps): fix README / fix mock MenuIcon / fix axios status 401 * feat(components): http / sessionTimeout Page * 1.0.0
- Loading branch information
Showing
11 changed files
with
91 additions
and
45 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
## v 1.0.0 (2022-9.19) | ||
|
||
### 升级说明 | ||
|
||
- v1.0.0 版本发布正式版 | ||
|
||
<!-- | ||
## 1.0.0(2022-9.19) | ||
### 升级说明 | ||
- v1.0.0 版本 | ||
### ✨ Features | ||
- **其它** | ||
- xxx | ||
### 🐛 Bug Fixes | ||
- **xx** | ||
- xxx | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
import { http } from '@/http' | ||
import { baseUrl } from '.' | ||
import { Api } from './Api' | ||
export const get401 = () => http.get(`${baseUrl}/${Api.permissions401}`) | ||
export const get401 = () => http.get(`${baseUrl}${Api.permissions401}`) | ||
export const getErr = (status: 200 | 206 | 402 | 403 | 404 | 500 | 501 | 503) => | ||
http.get(`${baseUrl}/err/${status}`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,26 @@ | ||
<template> | ||
<Content> <NButton @click="errClick401">get 401 </NButton></Content> | ||
<Content> | ||
<NButton | ||
type="primary" | ||
v-for="item of list" | ||
:key="item.name" | ||
@click="item.fn()" | ||
class="mr-10px" | ||
>{{ item.name }}</NButton | ||
> | ||
</Content> | ||
</template> | ||
<script lang="ts" setup> | ||
import { get401 } from '@/api/test' | ||
const errClick401 = () => get401() | ||
import { getErr } from '@/api/test' | ||
const list = [ | ||
{ name: '200', fn: () => getErr(200) }, | ||
{ name: '206', fn: () => getErr(206) }, | ||
{ name: '402', fn: () => getErr(402) }, | ||
{ name: '403', fn: () => getErr(403) }, | ||
{ name: '404', fn: () => getErr(404) }, | ||
{ name: '500', fn: () => getErr(500) }, | ||
{ name: '501', fn: () => getErr(501) }, | ||
{ name: '503', fn: () => getErr(503) }, | ||
] | ||
</script> | ||
<style scoped></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
<template><Content> 登录过期 </Content></template> | ||
<script lang="ts" setup></script> | ||
<style scoped></style> | ||
<template> | ||
<Content> | ||
<NButton @click="errClick401" type="primary" | ||
>http status 401 退出登录</NButton | ||
> | ||
</Content> | ||
</template> | ||
<script lang="ts" setup> | ||
import { get401 } from '@/api/test' | ||
const errClick401 = () => get401() | ||
</script> |