解决了所有警告

This commit is contained in:
luyuan 2020-10-05 16:47:36 +08:00
parent a817bc2891
commit 1d0b8f2043
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
5 changed files with 12 additions and 6 deletions

View File

@ -162,11 +162,17 @@ export default defineComponent({
const paytype = ref(1); const paytype = ref(1);
const paytypeforign = ref(1); const paytypeforign = ref(1);
const onChange: (e: any) => void = (e: any) => { interface Changes {
target: {
value: number;
};
}
const onChange: (e: Changes) => void = (e: Changes) => {
console.log("radio checked", e.target.value); console.log("radio checked", e.target.value);
paytype.value = e.target.value; paytype.value = e.target.value;
}; };
const onChange1: (e: any) => void = (e: any) => { const onChange1: (e: Changes) => void = (e: Changes) => {
console.log("radio checked", e.target.value); console.log("radio checked", e.target.value);
paytypeforign.value = e.target.value; paytypeforign.value = e.target.value;
}; };

View File

@ -64,7 +64,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent, ref } from "vue"; import { defineComponent } from "vue";
import NavBottom from "@/components/NavBottom.vue"; import NavBottom from "@/components/NavBottom.vue";
export default defineComponent({ export default defineComponent({
name: "Cashoutdetail", name: "Cashoutdetail",

View File

@ -80,7 +80,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent, ref } from "vue"; import { defineComponent } from "vue";
import NavBottom from "@/components/NavBottom.vue"; import NavBottom from "@/components/NavBottom.vue";
export default defineComponent({ export default defineComponent({
name: "Transaction", name: "Transaction",

View File

@ -45,7 +45,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent, ref } from "vue"; import { defineComponent } from "vue";
import NavBottom from "@/components/NavBottom.vue"; import NavBottom from "@/components/NavBottom.vue";
export default defineComponent({ export default defineComponent({
name: "Transactiondetail", name: "Transactiondetail",

View File

@ -201,7 +201,7 @@
</template> </template>
<script lang="ts"> <script lang="ts">
import { defineComponent, ref } from "vue"; import { defineComponent } from "vue";
import NavBottom from "@/components/NavBottom.vue"; import NavBottom from "@/components/NavBottom.vue";
import router from '@/router'; import router from '@/router';
export default defineComponent({ export default defineComponent({