@@ -4,6 +4,9 @@ import {
import {
categoryList
} from "@/api/device/category";
+import {
+ functionList
+} from "@/api/device/function";
const clientType = {
data() {
@@ -46,7 +49,24 @@ const category = {
}
+const functions = {
+ data() {
+ return {
+ functionOptions: []
+ }
+ },
+ created() {
+ // 权限列表
+ functionList().then((res) => {
+ if (res.code === 0) {
+ this.functionOptions = res.data;
+ });
+}
+
export {
clientType,
- category
+ category,
+ functions