|
|
@@ -82,11 +82,18 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+// import http from '@/plugins/http'
|
|
|
+import axios from 'axios'
|
|
|
+
|
|
|
export default {
|
|
|
+ async asyncData() {
|
|
|
+ let res = await axios.post('http://localhost:8080/api/getList')
|
|
|
+ return { vipList: res.data.data }
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
// 会员类型列表
|
|
|
- vipList: [],
|
|
|
+ // vipList: [],
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -98,7 +105,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.getVIPList();
|
|
|
+ // this.getVIPList();
|
|
|
+ console.log(this.vipList)
|
|
|
},
|
|
|
methods: {
|
|
|
/**
|