policy-change-guide.js 1.06 KB

import { setTitle } from '@/utils/utils.js';

import PolicyHeadList from "./policy-head-list.vue";
import Auth from '@components/auth/auth.vue';

export default {
	data() {
		return {
            showForm: false,
			key: 'value'
		}
	},
    components: {
		PolicyHeadList,
        Auth
    },
	computed: {
		locale() {
			return this.$i18n.locale || 'tc';
		},
		i18n() {
			return this.$i18n.messages && this.$i18n.locale ? this.$i18n.messages[this.$i18n.locale] : {};
		},
	},
	methods: {
		toContactUs() {
			this.$router.push({
				path: "/custom/service",
				query: {
					q: "m1"
				}
			});
		},
		onProjectHandler(item) {
			if (item.projectType == 1) {
				this.$router.push({
					path: item.path,
					query: item.query
				})
			}
		},
		initData() {},
        userLogout() {
            this.showForm = false;
        },
        userLogin(data) {
            this.showForm = true;
        },
		initTitle() {
			try {
				let title = this.i18n.customService.menu41;
				setTitle(title);
			} catch (e) {

			}
		}
	},
	mounted() {
		this.initTitle();
	},
	created() {}
}