01 2022 档案
摘要:1.api 文件夹中的定义调取字典的接口 2.在main文件中引入api 并且挂在在全局方法上,便于每个页面都可以使用 3.相关页面的使用方式index.vue页面中在created生命周期函数中进行调用接口并且在Data中定义urlTypeOptions:[ ]数组中储存 其中“url_type”
阅读全文
摘要:Vue下拉框回显问题,可以看到回显为数字,而不是对应的文字解决方案 1.将数据库表中的那个字段改为string型。2.将value的值用Number包起来,即 就可以解决啦~~~~
阅读全文
摘要:template部分 <ul> <li :class="item._isChecked?'img-checked':''" v-for="(item,index) in list" :key="index" @click="checkTab(item,index)"> <img :src="item
阅读全文