|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
-
-
-
- var app = new Vue({
- el: '#app-setting-admin',
- data() {
- return Object.assign({
- currentSection: null,
- sectionsArray: []
- }, window.appInitValues);
- },
- methods: {
- changeSection: function(section) {
- this.currentSection = section.name ;
- },
- getInitialSection: function() {
- var hash = window.location.hash.substring(1);
- if(hash && hash.length) {
- return hash;
- }
- return this.sectionsArray[0].name;
- }
- },
- mounted: function() {
- this.currentSection = this.getInitialSection();
- }
- });
-
-
|