SOURCE

import {
    getChanceList,// 字典查询 传入字典名称
    queryDict
} from "@/api/chanceManager/chanceManager";
export default {
    data() {
        return {
            nextEdit: false,
            tableData: "",
            searchForm: {},
            getChanceHandel: null,
            res1: null,
            res2: null,
        };
    },
    mounted() {
        this.getData()
    },
    methods: {
        getData() {
            console.log("run");
            const chain = Promise.resolve(this.searchForm)
            chain.then(getChanceList).then(async (res1) => {
                let res2 = await queryDict("post_type")
                return [res1, res2]
            }).then(([res1, res2]) => {
                console.log(res1.data[0].chanceName);
                console.log(res2.data[0].dictLabel);
            })
        }
    },


};
console 命令行工具 X clear

                    
>
console