|
@@ -32,7 +32,22 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { index, personnel, government, record, policy, serve, enterprise, duijiehui, site, user, links, defaultMenu, vip } from '@/util/role_menu.js';
|
|
|
|
|
|
+import {
|
|
|
|
+ index,
|
|
|
|
+ personnel,
|
|
|
|
+ government,
|
|
|
|
+ record,
|
|
|
|
+ policy,
|
|
|
|
+ serve,
|
|
|
|
+ enterprise,
|
|
|
|
+ duijiehui,
|
|
|
|
+ site,
|
|
|
|
+ user,
|
|
|
|
+ links,
|
|
|
|
+ defaultMenu,
|
|
|
|
+ vip,
|
|
|
|
+ technical,
|
|
|
|
+} from '@/util/role_menu.js';
|
|
import * as menus from '@/util/role_menu.js';
|
|
import * as menus from '@/util/role_menu.js';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
import { mapState, createNamespacedHelpers } from 'vuex';
|
|
const { mapActions } = createNamespacedHelpers('login');
|
|
const { mapActions } = createNamespacedHelpers('login');
|
|
@@ -54,7 +69,7 @@ export default {
|
|
async search() {
|
|
async search() {
|
|
if (!this.user.uid) return;
|
|
if (!this.user.uid) return;
|
|
if (this.user.role == '1') {
|
|
if (this.user.role == '1') {
|
|
- this.menu.push(index, ...defaultMenu, vip, personnel, government, record, policy, serve, enterprise, duijiehui, site, user, links);
|
|
|
|
|
|
+ this.menu.push(index, ...defaultMenu, user, vip, personnel, government, record, policy, serve, technical, enterprise, duijiehui, site, links);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
const res = await this.toGetMenu({ id: this.user.uid });
|
|
const res = await this.toGetMenu({ id: this.user.uid });
|