-
Notifications
You must be signed in to change notification settings - Fork 99
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
40 changed files
with
185 additions
and
887 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,19 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" class="base-theme"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title><%= title %></title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.js"></script> | ||
</body> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
<link rel="stylesheet" href="src/styles/init-loading.css" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title><%= title %></title> | ||
</head> | ||
<body> | ||
<div id="app"> | ||
<div class="loader-wrapper"> | ||
<img src="src/assets/gif/dianchi.gif" class="loading-gif"> | ||
<div class="load_title">正在加载系统资源,请耐心等待</div> | ||
</div> | ||
</div> | ||
<script type="module" src="/src/main.js"></script> | ||
</body> | ||
</html> |
File renamed without changes.
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
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.