1.0.1 • Published 2 years ago
slidecode-vue3 v1.0.1
slidecode
引入
import Vue from 'vue';
import slidecode from 'slidecode/index.umd.min'
import 'slidecode/index.css'
Vue.use(slidecode);
使用
this.$getImg(url,({ data, that }) => {
const loginData = {
登录参数,
...data,
};
//登录接口
loginByUsername(loginData).then((res) => {
that.refreshcallback(true);
console.log(res);
}).catch((e) => {
if (e.response.data.message === '验证码不正确!') {
that.refreshcallback(false);
} else {
that.refreshcallback(true);
}
});
});