|
@@ -276,7 +276,7 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script setup>
|
|
<script setup>
|
|
-import { ref, watch, onBeforeUnmount, onMounted } from 'vue';
|
|
|
|
|
|
+import { ref, watch, onBeforeUnmount, onMounted, watchEffect, nextTick } from 'vue';
|
|
import { useRoute } from 'vue-router';
|
|
import { useRoute } from 'vue-router';
|
|
import { ElMessage } from 'element-plus';
|
|
import { ElMessage } from 'element-plus';
|
|
import { DocumentCopy } from '@element-plus/icons-vue';
|
|
import { DocumentCopy } from '@element-plus/icons-vue';
|
|
@@ -288,6 +288,9 @@ const route = useRoute();
|
|
let queueId = ref(route.params.id || '0'); // 默认值为 '0',表示简介
|
|
let queueId = ref(route.params.id || '0'); // 默认值为 '0',表示简介
|
|
watch(() => route.params.id, (newId) => {
|
|
watch(() => route.params.id, (newId) => {
|
|
queueId.value = newId || '0';
|
|
queueId.value = newId || '0';
|
|
|
|
+ nextTick(() => {
|
|
|
|
+ handleSetPreWidth()
|
|
|
|
+ })
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
@@ -674,6 +677,7 @@ pre {
|
|
padding: 10px;
|
|
padding: 10px;
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
overflow: auto;
|
|
overflow: auto;
|
|
|
|
+ // width: calc(100vw - 424px);
|
|
width: 10px;
|
|
width: 10px;
|
|
white-space: pre-wrap;
|
|
white-space: pre-wrap;
|
|
/* 保留空白符序列,但是正常地进行换行 */
|
|
/* 保留空白符序列,但是正常地进行换行 */
|