Commit 237504d7 authored by 张俊's avatar 张俊

vue3写法

parent 325fbce8
......@@ -57,14 +57,11 @@
</template>
<script setup>
import { reactive, toRefs, ref, } from '@vue/reactivity'
import { getCurrentInstance } from 'vue'
import { computed, onBeforeMount, watch } from '@vue/runtime-core'
import { reactive, ref,onBeforeMount,toRefs,computed,watch } from 'vue'
import { useRouter } from 'vue-router';
import bgTable from '@/bg-ui/bg-table.vue'
// const bgTable = ref(null)
const { proxy } = getCurrentInstance()
const { $message, $axios } = proxy
import { ElMessage } from 'element-plus'
import axios from '../../../../request/http.js'
const state = reactive({
typeList: [
{
......@@ -142,7 +139,7 @@ const getTypeList = () => {
}
const getTableRows = () => {
let params = {...state.filter}
$axios
axios
.get(
`/apaas/system/v5/dictionary/list`,
{
......@@ -154,7 +151,7 @@ const getTableRows = () => {
state.tableRows = res.data.data || []
state.tableTotal = res.data.total
}else {
$message.error(res.data.msg)
ElMessage.error(res.data.msg)
}
})
} // 获取数据
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment