| | |
| | | }
|
| | | })
|
| | |
|
| | | const onlyOneChild = ref({});
|
| | | const onlyOneChild = ref({})
|
| | |
|
| | | function hasOneShowingChild(children = [], parent) {
|
| | | if (!children) {
|
| | | children = [];
|
| | | children = []
|
| | | }
|
| | | const showingChildren = children.filter(item => {
|
| | | if (item.hidden) {
|
| | |
| | | }
|
| | |
|
| | | return false
|
| | | };
|
| | | }
|
| | |
|
| | | function resolvePath(routePath, routeQuery) {
|
| | | if (isExternal(routePath)) {
|
| | |
| | | return props.basePath
|
| | | }
|
| | | if (routeQuery) {
|
| | | let query = JSON.parse(routeQuery);
|
| | | let query = JSON.parse(routeQuery)
|
| | | return { path: getNormalPath(props.basePath + '/' + routePath), query: query }
|
| | | }
|
| | | return getNormalPath(props.basePath + '/' + routePath)
|
| | |
| | |
|
| | | function hasTitle(title){
|
| | | if (title.length > 5) {
|
| | | return title;
|
| | | return title
|
| | | } else {
|
| | | return "";
|
| | | return ""
|
| | | }
|
| | | }
|
| | | </script>
|