|
@@ -20,10 +20,12 @@ import { useUserStore } from '/src/store/modules/users';
|
|
interface FormState {
|
|
interface FormState {
|
|
username: string;
|
|
username: string;
|
|
password: string;
|
|
password: string;
|
|
- grant_type: string;
|
|
|
|
- loginType: string;
|
|
|
|
- client_id: string;
|
|
|
|
- client_secret: string;
|
|
|
|
|
|
+ grant_type?: string;
|
|
|
|
+ loginType?: string;
|
|
|
|
+ client_id?: string;
|
|
|
|
+ client_secret?: string;
|
|
|
|
+ clientId?: string;
|
|
|
|
+ clientSecret?: string;
|
|
}
|
|
}
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
@@ -39,8 +41,8 @@ export default defineComponent({
|
|
const showPwd = ref(false);
|
|
const showPwd = ref(false);
|
|
const userStore = useUserStore();
|
|
const userStore = useUserStore();
|
|
const formInline = reactive({
|
|
const formInline = reactive({
|
|
- username: 'admin',
|
|
|
|
- password: '123456',
|
|
|
|
|
|
+ username: '13810952948',
|
|
|
|
+ password: 'klx2948',
|
|
isCaptcha: true
|
|
isCaptcha: true
|
|
});
|
|
});
|
|
|
|
|
|
@@ -54,10 +56,12 @@ export default defineComponent({
|
|
const params: FormState = {
|
|
const params: FormState = {
|
|
username,
|
|
username,
|
|
password,
|
|
password,
|
|
- loginType: 'password',
|
|
|
|
- grant_type: 'password',
|
|
|
|
- client_id: 'jmedu-backend',
|
|
|
|
- client_secret: 'jmedu-backend'
|
|
|
|
|
|
+ // loginType: 'password',
|
|
|
|
+ // grant_type: 'password',
|
|
|
|
+ // client_id: 'teacher',
|
|
|
|
+ // client_secret: 'teacher'
|
|
|
|
+ clientId: 'teacher',
|
|
|
|
+ clientSecret: 'teacher'
|
|
};
|
|
};
|
|
|
|
|
|
try {
|
|
try {
|