no message

This commit is contained in:
A1300399510 2024-11-11 18:32:05 +08:00
parent 37c6d21f45
commit 6b88429e74
2 changed files with 5 additions and 7 deletions

View File

@ -119,7 +119,7 @@
</div> </div>
<script> <script>
const { createApp, ref, onMounted, nextTick, onUnmounted, computed } = Vue const { createApp, ref, onMounted, nextTick, onUnmounted, computed } = Vue
const projectIndex = createApp({ const search = createApp({
setup() { setup() {
onMounted(() => { onMounted(() => {
// kw.value = "术" // kw.value = "术"
@ -256,9 +256,7 @@
}, },
}) })
projectIndex.component("base-bottom", base) search.mount("#app")
projectIndex.mount("#app")
</script> </script>
</body> </body>
</html> </html>

View File

@ -81,13 +81,13 @@ function objectToQueryString(obj = {}) {
return queryString ? "?" + queryString : "" return queryString ? "?" + queryString : ""
} }
function decodeKey(encrypted) { function decodeKey(encrypted,key) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
try { try {
const storedData = localStorage.getItem("basicData") const storedData = localStorage.getItem("basicData")
const basicData = JSON.parse(storedData) const basicData = JSON.parse(storedData)
console.log("basicData", basicData) console.log("basicData", basicData)
const key = basicData.encodekey // const key = basicData.encodekey
console.log("encodekey", key) console.log("encodekey", key)
const encryptedData = CryptoJS.enc.Base64.parse(encrypted) const encryptedData = CryptoJS.enc.Base64.parse(encrypted)