|
@@ -41,6 +41,7 @@ import InstallChrome from '@/components/InstallChrome.vue'
|
|
|
import InstallExtension from '@/components/InstallExtension.vue'
|
|
|
import { getBrowserType, baseURL, appVersionCode, jumpUrl } from '@/utils/help.js'
|
|
|
import axios from 'axios'
|
|
|
+import Cookies from 'js-cookie'
|
|
|
import { Toast } from 'vant';
|
|
|
|
|
|
|
|
@@ -134,9 +135,21 @@ export default {
|
|
|
this.device = getBrowserType()
|
|
|
this.getConfig()
|
|
|
console.log('device',this.device)
|
|
|
+ if(this.device == 'chrome'){
|
|
|
+ this.setCookie()
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+ setCookie(){
|
|
|
+ let pickupInfo = {
|
|
|
+ srcContentId: this.detail.srcContentId || '',
|
|
|
+ postNickName: this.detail.srcUserId || '',
|
|
|
+ createTime: Date.now(),
|
|
|
+ jump_type: 'jump_info',
|
|
|
+ };
|
|
|
+ Cookies.set('jump_info', JSON.stringify(pickupInfo), { expires: 1000 });
|
|
|
+ },
|
|
|
async getConfig() {
|
|
|
let { data } = await axios.post(`${baseURL}/denet/base/config/getFrontConfig`, {
|
|
|
baseInfo: {
|