Browse Source

动态修改采集页面的网页名称

shibei_master
jiangyy 3 years ago
parent
commit
b75406deaa
  1. 14
      src/views/pages/caiji.vue

14
src/views/pages/caiji.vue

@ -203,6 +203,7 @@ import { requestPost } from "@/js/dai/request";
import { Toast } from "mint-ui";
import { MessageBox } from 'mint-ui';
import { Loading } from 'element-ui' // Loading
import { messages } from '@/i18n'
let loading //
export default {
@ -308,13 +309,17 @@ export default {
computed: {
},
created () { },
mounted () {
created () {
console.log(this.$route)
this.shequId = this.$route.params.id
this.customerId = this.$route.query.customerId
this.shequName = this.$route.query.name
document.title = this.shequName
},
mounted () {
let envShow = process.env.VUE_APP_NODE_ENV
console.log('环境', envShow)
@ -855,7 +860,10 @@ export default {
}
}
},
beforeDestroy () {
document.title = messages[val].brand.lg
},
}
</script>

Loading…
Cancel
Save