处理文件浏览bug
This commit is contained in:
@@ -33,20 +33,20 @@
|
||||
</div>
|
||||
<div class="entity-copy">
|
||||
<el-link :type="scope.row.is_dir ? 'primary' : 'info'" @click="scope.row.is_dir ? navigateTo(scope.row.name) : null">
|
||||
[[ scope.row.name ]]
|
||||
{% raw %}{{ scope.row.name }}{% endraw %}
|
||||
</el-link>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="type" label="类型" width="110" align="center">
|
||||
<template slot-scope="scope">[[ scope.row.is_dir ? '目录' : '文件' ]]</template>
|
||||
<template slot-scope="scope">{% raw %}{{ scope.row.is_dir ? '目录' : '文件' }}{% endraw %}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="size" label="大小" width="120" align="center">
|
||||
<template slot-scope="scope">[[ scope.row.is_dir ? '-' : formatFileSize(scope.row.size) ]]</template>
|
||||
<template slot-scope="scope">{% raw %}{{ scope.row.is_dir ? '-' : formatFileSize(scope.row.size) }}{% endraw %}</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="modified" label="修改时间" width="190">
|
||||
<template slot-scope="scope">[[ formatDate(scope.row.modified) ]]</template>
|
||||
<template slot-scope="scope">{% raw %}{{ formatDate(scope.row.modified) }}{% endraw %}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" width="120" align="center">
|
||||
<template slot-scope="scope">
|
||||
@@ -63,7 +63,6 @@
|
||||
new Vue({
|
||||
el: '#app',
|
||||
mixins: [baseApp],
|
||||
delimiters: ['[[', ']]'],
|
||||
data() {
|
||||
return {
|
||||
currentPath: '',
|
||||
|
||||
Reference in New Issue
Block a user