 <script>
        var q = {};
        location.search.replace(/([^?&=]+)=([^&]+)/g, (_, k, v) => q[k] = v);
        if (q.url) {
            vueApp.setCodeFromUrl(q.url);
        } else if (q.code) {
            const decode = decodeURIComponent(q.code);
            const jsonStr = base64ToString(decode);
            const json = JSON.parse(jsonStr);
            vueApp.code = json.code;
        } else if (q.id) {
            const submitData = {};
            submitData.contents = true;
       