Skip to content

Commit

Permalink
PuzzlesDetail
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberFei committed Jun 4, 2019
1 parent 4ce224c commit bc77f02
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
7 changes: 7 additions & 0 deletions src/core/api/menus.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ export default [
leaf: true,
page: "/test2",
puzzle: "test"
},
{
id: "puzzlesDetail",
name: "模块加载详情",
leaf: true,
page: "/puzzlesDetail",
puzzle: "test"
}
],
icon: "puzzle",
Expand Down
1 change: 0 additions & 1 deletion src/frames/dashboard/scripts/api.js

This file was deleted.

29 changes: 29 additions & 0 deletions src/puzzles/test/views/puzzlesDetail.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<template>
<div class="page">
<b>当前使用基座:</b>
<div>{{frame}}</div>
<br>
<b>成功加载模块</b>
<div>{{PUZZLE_SUCCESS}}</div>
<br>
<b>未成功加载模块</b>
<div>{{PUZZLE_FAILURE}}</div>
</div>
</template>

<script>
export default {
name: "puzzlesDetail",
data() {
return {
frame: localStorage.getItem("frame") || PUZZLE_CONFIG.frame,
PUZZLE_SUCCESS: window.PUZZLE_SUCCESS
? window.PUZZLE_SUCCESS.join(", ")
: "请在生产环境查看",
PUZZLE_FAILURE: window.PUZZLE_FAILURE
? window.PUZZLE_FAILURE.join(", ")
: "请在生产环境查看"
};
}
};
</script>

0 comments on commit bc77f02

Please sign in to comment.