43 lines
948 B
Vue
43 lines
948 B
Vue
<template>
|
|
<view class="flex flex-col items-center justify-center">
|
|
<image class="h-[200rpx] w-[200rpx] mt-[200rpx] mx-auto mb-[50rpx]" src="@/static/logo.png"></image>
|
|
<view class="flex justify-center">
|
|
<text class="text-[36rpx] text-[#8f8f94]">Hello RuoYi</text>
|
|
<button @click="csqq">数据测试</button>
|
|
|
|
</view>
|
|
</view>
|
|
|
|
</template>
|
|
|
|
<script setup>
|
|
import { ref, getCurrentInstance } from 'vue';
|
|
import { updateOuathinfo } from "@/api/system/logins";
|
|
const { proxy } = getCurrentInstance();
|
|
const form = ref({});
|
|
const csqq = () => {
|
|
form.value = {
|
|
id: 7,
|
|
userId: 1,
|
|
openid1: "osFFw",
|
|
unionid1: null,
|
|
ouathKey3: "99",
|
|
type: "2",
|
|
createBy: null,
|
|
createTime: null,
|
|
updateBy: null,
|
|
updateTime: null,
|
|
remark: null
|
|
};
|
|
updateOuathinfo(form.value).then( e=> {
|
|
proxy.$modal.msgSuccess("修改成功");
|
|
console.log(e)
|
|
})
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
<style></style>
|