|
12 | 12 | <div class="text item"><i class="el-icon-edit"></i>、更多内容,查看官方文档:<a href="http://vueadmin.neters.club/.doc/" target="_blank">http://vueadmin.neters.club/.doc/</a>。 </div> |
13 | 13 | </el-card> |
14 | 14 | <el-card class="welcome-card"> |
15 | | - <el-aside>动态添加一个vue页面:</el-aside> |
| 15 | + <div slot="header" class="clearfix"> |
| 16 | + <span>服务器:</span> |
| 17 | + </div> |
16 | 18 |
|
17 | 19 | <br> |
| 20 | + <div class="text item">环境变量:{{serverInfo.EnvironmentName}}</div> |
| 21 | + <div class="text item">系统架构:{{serverInfo.OSArchitecture}}</div> |
| 22 | + <div class="text item">ContentRootPath:{{serverInfo.ContentRootPath}}</div> |
| 23 | + <div class="text item">WebRootPath:{{serverInfo.WebRootPath}}</div> |
| 24 | + <div class="text item">.NET Core版本:{{serverInfo.FrameworkDescription}}</div> |
| 25 | + <div class="text item">内存占用:{{serverInfo.MemoryFootprint}}</div> |
| 26 | + <div class="text item">启动时间:{{serverInfo.WorkingTime}}</div> |
| 27 | + |
| 28 | + |
18 | 29 |
|
19 | | - <div class="text item"><i class="el-icon-edit"></i>、更多内容,查看博客园文档:<a href="https://www.cnblogs.com/laozhang-is-phi/p/10643993.html#autoid-2-6-0" target="_blank">https://www.cnblogs.com/laozhang-is-phi/p/10643993.html#autoid-2-6-0</a>。 </div> |
20 | 30 | </el-card> |
21 | 31 | <el-card class="welcome-card"> |
22 | | - <el-aside>快速配置接口权限:</el-aside> |
| 32 | + <div slot="header" class="clearfix"> |
| 33 | + <span>相关配置</span> |
| 34 | + </div> |
| 35 | + |
| 36 | + |
| 37 | + <el-aside>1、动态添加一个vue页面:</el-aside> |
| 38 | + |
| 39 | + <br> |
| 40 | + |
| 41 | + <div class="text item"><i class="el-icon-edit"></i>、更多内容,查看博客园文档:<a href="https://www.cnblogs.com/laozhang-is-phi/p/10643993.html#autoid-2-6-0" target="_blank">https://www.cnblogs.com/laozhang-is-phi/p/10643993.html#autoid-2-6-0</a>。 </div> |
| 42 | + |
| 43 | + <br> |
| 44 | + <hr> |
| 45 | + <br> |
| 46 | + |
| 47 | + <el-aside>2、快速配置接口权限:</el-aside> |
23 | 48 |
|
24 | 49 | <br> |
25 | 50 | <div style="height: 300px;overflow-y: auto;"> |
|
44 | 69 |
|
45 | 70 | <script> |
46 | 71 | import applicationUserManager from "../Auth/applicationusermanager"; |
| 72 | + import {getServerInfo} from '../api/api'; |
47 | 73 | |
48 | 74 | export default { |
49 | 75 | name: "Welcome", |
| 76 | + data() { |
| 77 | + return { |
| 78 | + serverInfo:{} |
| 79 | + } |
| 80 | + }, |
50 | 81 | mounted() { |
51 | 82 | var curTime = new Date() |
52 | 83 | if(window.localStorage.TokenExpire){ |
|
66 | 97 | } |
67 | 98 | } |
68 | 99 |
|
| 100 | + getServerInfo({}).then((res) => { |
| 101 | + this.serverInfo = res.data.response; |
| 102 | + }); |
| 103 | +
|
69 | 104 | }, |
70 | 105 | } |
71 | 106 | </script> |
|
0 commit comments