Problems with vue using ActiveX

ActiveX is written by itself, which is a printing function and has been successfully tested in a separate html.
PrintPage is a print function within ActiveX.
can be placed under vue to prompt SCRIPT3: that the member cannot be found.
since I am a beginner in vue, I ask the Great God for help.

<template>
    <div>
        <object id="myprint" classid="clsid:D177A309-DF43-4CA0-83A1-6BBE5D0B2D41"></object>
        <div id="btn">
            <button @click="doPrint"></button>
        </div>
    </div>
</template>
<script>

    export default {
        data() {
            return {
                total: 0
            }
        },
        methods: {
            doPrint(event) {
                var activeX = document.getElementById("myprint");
                activeX.PrintPage("2341231111");
            }
        }
    }

</script>
Mar.28,2021
Have you solved the problem of

Big chest Brother? I have also met


Brother. Ask the same question, ah, all kinds of methods for getting objects have been taken, but the methods can not run away.


this cannot coexist with vue at the moment. I'm using iframe as a compromise.


has this problem been solved


has this problem been solved


bind Object element to ref= "myPrint" , and then write

when you get it in doPrint .
this.$nextTick(() => {
    var activeX = this.$refs.myPrint;
})

Hello, have you solved your problem? I also encountered that vue cannot call the method in ActiveX, which shows that it does not exist, and it is useless to fetch the object in any way

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4c207-4d227.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4c207-4d227.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?