|
|
@@ -35,6 +35,20 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
+ // 升序
|
|
|
+ function compare (propertyName) {
|
|
|
+ return function (object1, object2) {
|
|
|
+ var value1 = object1[propertyName]
|
|
|
+ var value2 = object2[propertyName]
|
|
|
+ if (value1 > value2) {
|
|
|
+ return 1
|
|
|
+ } else if (value1 < value2) {
|
|
|
+ return -1
|
|
|
+ } else {
|
|
|
+ return 0
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
import { left, helpHeader } from '~components/help'
|
|
|
export default {
|
|
|
name: 'help',
|
|
|
@@ -54,7 +68,7 @@
|
|
|
return this.$store.state.help.title.data
|
|
|
},
|
|
|
helpList () {
|
|
|
- return this.$store.state.help.helplist.data
|
|
|
+ return this.$store.state.help.helplist.data.sort(compare('detno'))
|
|
|
}
|
|
|
}
|
|
|
}
|