profile.js 550 Bytes
import api from '@/api/api'
import {
	httpGet,
	httpPost
} from '@/api/fetch-api.js'

import "quill/dist/quill.core.css";

export default {
	data() {
		return {
			key: 'value',
			title: "",
			content: "",
		}
	},
	components: {},
	methods: {
		initData() {
			httpGet({ url: api.companyOutline, data: { l: this.$i18n.locale } }).then(res => {
				this.content = res.content;
				this.title = res.title;
			});
		}
	},
	mounted() {
		this.initData();
	},
	created() { 
		this.$root.eventBus.$on("langChange", () => {
			this.initData();
		});
	}
}