mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-24 04:33:06 +00:00
[fix]修复引用Ztree路径问题
This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
// 导入JQuery
|
// 导入JQuery
|
||||||
// eslint-disable-next-line no-unused-vars
|
// eslint-disable-next-line no-unused-vars
|
||||||
import $ from '@/utils/jquery-vendor.js'
|
import $ from '@/utils/jquery-vendor.js'
|
||||||
import '@ztree/ztree_v3/js/jquery.ztree.core.min.js'
|
import '@ztree/ztree_v3/js/jquery.ztree.all.min.js'
|
||||||
import '@/styles/ztree.css'
|
import '@/styles/ztree.css'
|
||||||
|
|
||||||
const defaultObject = {
|
const defaultObject = {
|
||||||
@@ -58,6 +58,7 @@ export default {
|
|||||||
name: this.$t('common.tree.Empty')
|
name: this.$t('common.tree.Empty')
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
console.log(this.treeSetting)
|
||||||
this.zTree = $.fn.zTree.init($('#ztree'), this.treeSetting, res)
|
this.zTree = $.fn.zTree.init($('#ztree'), this.treeSetting, res)
|
||||||
if (this.treeSetting.showRefresh) {
|
if (this.treeSetting.showRefresh) {
|
||||||
this.rootNodeAddDom(
|
this.rootNodeAddDom(
|
||||||
|
Reference in New Issue
Block a user