Explorar o código

公共方法、属性文件

DESKTOP-O04BTUJ\muzen %!s(int64=3) %!d(string=hai) anos
pai
achega
41f8a80828
Modificáronse 1 ficheiros con 25 adicións e 0 borrados
  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 }