ソースを参照

公共方法、属性文件

DESKTOP-O04BTUJ\muzen 3 年 前
コミット
41f8a80828
1 ファイル変更25 行追加0 行削除
  1. 25 0
      src/mixin/index.js

+ 25 - 0
src/mixin/index.js

@@ -0,0 +1,25 @@
+import {
+  getClientTypeList
+} from '@/api/device/version'
+
+const devMixin = {
+  data() {
+    return {
+      devOptions: []
+    }
+  },
+  mounted() {
+    getClientTypeList().then(res => {
+      if (res.code === 0) {
+        res.data.map(i => {
+          this.devOptions.push({
+            value: i.clientTypeId,
+            label: i.name
+          })
+        })
+      }
+    })
+  },
+}
+
+export { devMixin }