policy.4929f60b.js 778 B

1
  1. import{n as l}from"./index.4fdc1c7a.js";const r={name:"policy",data(){return{title:"",content:""}},mounted(){this.getPolicy()},methods:{getPolicy(){const n=this.$t("common.failure");this.$axios.get("/api/settings/notice_policy").then(t=>{const{code:e,msg:i=n,data:s=[]}=t.data;if(e==0){const[u,o={}]=s,{value:c}=o;this.title=o[this.titleKey],this.content=c[this.contentKey]}else this.$message.error(i)})}},computed:{titleKey(){return this.$i18n.locale==="ko"?"ko_title":"title"},contentKey(){return`${this.$i18n.locale}_content`}}};var a=function(){var t=this,e=t._self._c;return e("div",{staticClass:"policy"},[e("h3",[t._v(t._s(t.title))]),e("div",{domProps:{innerHTML:t._s(t.content)}})])},_=[],d=l(r,a,_,!1,null,"c0c0b6ed",null,null);const p=d.exports;export{p as default};