yujialong 5 months ago
parent d7d168a4ce
commit 4eb372e784
  1. 2
      README.md
  2. 2
      package.json
  3. 2
      src/libs/util.js
  4. 2
      src/mixins/article/index.js
  5. 2
      src/store/modules/content.js

@ -1 +1 @@
# 粒子研究院前台前端 # 粒子研究院

@ -1,5 +1,5 @@
{ {
"name": "vue-manage-system", "name": "iasf",
"version": "4.2.0", "version": "4.2.0",
"private": true, "private": true,
"scripts": { "scripts": {

@ -150,7 +150,7 @@ const util = {
}, },
// 传入站点id,判断是否英文 // 传入站点id,判断是否英文
getLang (id) { getLang (id) {
let siteId = util.getQuery('siteId') let siteId = util.getQuery('siteId') || 2
return Setting.enIds.includes(siteId ? +siteId : store.state.content.site) ? 'en' : 'zh' return Setting.enIds.includes(siteId ? +siteId : store.state.content.site) ? 'en' : 'zh'
}, },
// rsa加密 // rsa加密

@ -8,7 +8,7 @@ export default {
}, },
computed: { computed: {
site () { site () {
return this.$route.query.siteId || this.$store.state.content.site return this.$route.query.siteId || 2
} }
}, },
mounted () { mounted () {

@ -6,7 +6,7 @@
export default { export default {
namespaced: true, namespaced: true,
state: { state: {
site: 1, site: 2,
keyword: '' keyword: ''
}, },
getters: { getters: {

Loading…
Cancel
Save