forked from jzfai/vue3-admin-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add init loading page and remove $ref
- Loading branch information
Showing
52 changed files
with
149 additions
and
1,004 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const system = { | ||
url: '/mock/login', | ||
method: 'post', | ||
response: () => { | ||
return { | ||
code: 20000, | ||
jwtToken:"666666" | ||
} | ||
} | ||
} | ||
|
||
const loginOut = { | ||
url: '/mock/loginOut', | ||
method: 'post', | ||
response: () => { | ||
return { | ||
code: 200, | ||
title: 'mock请求测试' | ||
} | ||
} | ||
} | ||
|
||
export default [ | ||
system,loginOut | ||
] |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
//获取用户信息 | ||
import axiosReq from 'axios' | ||
// export const userInfoReq = (): Promise<any> => { | ||
// return new Promise((resolve) => { | ||
// const reqConfig = { | ||
// url: '/basis-func/user/getUserInfo', | ||
// params: { plateFormId: 2 }, | ||
// method: 'post' | ||
// } | ||
// axiosReq(reqConfig).then(({ data }) => { | ||
// resolve(data) | ||
// }) | ||
// }) | ||
// } | ||
|
||
//登录 | ||
export const loginReq = (subForm) => { | ||
return axiosReq({ | ||
url: '/mock/login', | ||
params: subForm, | ||
method: 'post' | ||
}) | ||
} | ||
|
||
//退出登录 | ||
export const loginOutReq = () => { | ||
return axiosReq({ | ||
url: '/mock/loginOut', | ||
method: 'post' | ||
}) | ||
} |
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,25 +1,24 @@ | ||
<template> | ||
<!-- 如果有 elSvgIcon 显示 elSvgIcon 没有显示 icon--> | ||
<el-icon v-if="meta?.elSvgIcon" class="el-svg-icon"> | ||
<component :is="ElSvg[meta.elSvgIcon]" /> | ||
<el-icon v-if="meta?.elSvgIcon" > | ||
<component :is="meta.elSvgIcon" /> | ||
</el-icon> | ||
<svg-icon v-else-if="meta?.icon" :icon-class="meta?.icon" class="nav-icon" /> | ||
<div v-else-if="meta?.icon" class="menu-svg-class"><svg-icon :icon-class="meta?.icon" /></div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import * as ElSvg from '@element-plus/icons-vue' | ||
// import * as ElSvg from '@element-plus/icons-vue' | ||
defineProps({ | ||
meta: { type: Object, default: null } | ||
}) | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
.el-svg-icon { | ||
width: 1em; | ||
height: 1em; | ||
position: relative; | ||
right: 3px; | ||
font-size: var(--sidebar-el-icon-size); | ||
text-align: left !important; | ||
.menu-svg-class { | ||
vertical-align: middle; | ||
margin-left: 1px; | ||
width: 29px; | ||
padding-left: 5px; | ||
text-align: left; | ||
} | ||
</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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import * as components from '@element-plus/icons-vue' | ||
|
||
export default { | ||
install: (app) => { | ||
for (const key in components) { | ||
const componentConfig = components[key]; | ||
app.component(componentConfig.name, componentConfig); | ||
} | ||
}, | ||
}; |
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
Oops, something went wrong.