mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-08 22:51:25 +08:00
修复命令输出结果为undefined时不显示的bug
This commit is contained in:
parent
2c8da17be0
commit
a905e4d981
@ -17,7 +17,12 @@
|
||||
>
|
||||
<div v-for="item in runResult" :key="item">
|
||||
<ObjectTree :obj="item" v-if="typeof item === 'object'" />
|
||||
<pre class="result" v-text="item" v-else></pre>
|
||||
<pre
|
||||
class="result undefined"
|
||||
v-else-if="typeof item === 'undefined'"
|
||||
v-text="'undefined'"
|
||||
/>
|
||||
<pre class="result" v-text="item" v-else />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -135,6 +140,10 @@ export default {
|
||||
max-width: 100%;
|
||||
margin: 0;
|
||||
}
|
||||
.undefined {
|
||||
color: #999;
|
||||
font-style: italic;
|
||||
}
|
||||
iframe {
|
||||
width: 100%;
|
||||
display: block;
|
||||
|
Loading…
x
Reference in New Issue
Block a user