Commit 61febcb3 authored by tanghao's avatar tanghao

123

parent 6a0d260d
...@@ -9,7 +9,9 @@ ...@@ -9,7 +9,9 @@
><span class="text-gray-500">{{ item.scriptDesc }}</span> ><span class="text-gray-500">{{ item.scriptDesc }}</span>
<template v-if="item?.example"> <template v-if="item?.example">
<p class="text-gray-500">示例:</p> <p class="text-gray-500">示例:</p>
<div class="bg-[#1e293b] p-2 text-white rounded">{{ item.example }}</div> <div class="bg-[#1e293b] p-2 text-white rounded expample">
{{ item.example }}
</div>
</template> </template>
</li> </li>
</ol> </ol>
...@@ -53,4 +55,10 @@ onMounted(() => { ...@@ -53,4 +55,10 @@ onMounted(() => {
onQueryExlScript() onQueryExlScript()
}) })
</script> </script>
<style lang="scss" scoped></style> <style lang="scss" scoped>
.expample {
white-space: pre-wrap;
}
</style>
...@@ -201,7 +201,12 @@ const onReset = () => { ...@@ -201,7 +201,12 @@ const onReset = () => {
} }
const editRow = (row) => { const editRow = (row) => {
console.log("查看脚本" + JSON.stringify(row.orders))
Object.assign(formEdit, row) Object.assign(formEdit, row)
// jsonStr = JSON.stringify(row.orders);
jsonStr.value = row.orders
console.log(jsonStr.value)
showEdit.value = true showEdit.value = true
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment