Skip to content

Commit

Permalink
deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
初志鑫 committed May 12, 2020
1 parent 7769cac commit 470ae8a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
6 changes: 1 addition & 5 deletions src/directive/clipboard/clipboard.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
const Clipboard = require("clipboard");
if (!Clipboard) {
throw new Error("you should npm install `clipboard` --save at first ");
}

import Clipboard from "clipboard";
export default {
bind(el, binding) {
if (binding.arg === "success") {
Expand Down
4 changes: 1 addition & 3 deletions src/directive/permission/permission.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import store from "@/store";

export default {
inserted(el, binding, vnode) {
inserted(el, binding) {
const { value } = binding;
const roles = store.getters && store.getters.roles;

Expand All @@ -14,8 +14,6 @@ export default {
if (!hasPermission) {
el.parentNode && el.parentNode.removeChild(el);
}
} else {
throw new Error(`need roles! Like v-permission="['admin','...']"`);
}
},
};
2 changes: 1 addition & 1 deletion src/views/index/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@
</div>
<el-alert
:closable="false"
title="2020年5月12日,不同寻常的一天,汶川大地震的12周年,被社区一名叫做812770127@qq.com的网友骂的狗血淋头,说这是一个抄袭的项目,这是一个一点技术含量都没有的项目,没关系,我把这段话一直留在这里,总有一天你会看到这个你曾经不屑一顾的框架发展壮大,谢谢你的讽刺让我变得强大"
title="2020年5月12日,不同寻常的一天,汶川大地震的12周年,被社区一名叫做812770127@qq.com的网友骂的狗血淋头,说这是一个抄袭的项目,这是一个一点技术含量都没有的项目,没关系,我把这段话一直留在这里,总有一天你会看到这个你曾经不屑一顾的框架发展壮大,谢谢你的嘲讽让我变得强大"
type="error"
>
</el-alert>
Expand Down

0 comments on commit 470ae8a

Please sign in to comment.