|
|
@@ -196,7 +196,8 @@
|
|
|
mounted() {
|
|
|
console.log("000000000000000", window.location.href);
|
|
|
console.log(this.$route.query.x_access_token);
|
|
|
- document.cookie = this.$route.query.x_access_token;
|
|
|
+ // document.cookie = this.$route.query.x_access_token;
|
|
|
+ this.setCookie();
|
|
|
this.getCareerDirection();
|
|
|
this.getProvince();
|
|
|
},
|
|
|
@@ -208,6 +209,24 @@
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
|
+ setCookie() {
|
|
|
+ //删除cookie
|
|
|
+ const x_access_token = this.$route.query.x_access_token;
|
|
|
+ if (x_access_token) {
|
|
|
+ this.deleteCookie("x_access_token_local", null, ".proginn.com");
|
|
|
+ this.deleteCookie("x_access_token_test_branch", null, ".proginn.com");
|
|
|
+ document.cookie = `x_access_token_local=123`;
|
|
|
+ document.cookie = `x_access_token_test_branch=456`
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ deleteCookie(name, path, domain) {
|
|
|
+ document.cookie = name + '=' +
|
|
|
+ ((path) ? ';path=' + path : '') +
|
|
|
+ ((domain) ? ';domain=' + domain : '') +
|
|
|
+ ';expires=Thu,01-Jan-1970 00:00:01 GMT';
|
|
|
+ },
|
|
|
+
|
|
|
/**
|
|
|
* 工作方式切换事件
|
|
|
*/
|
|
|
@@ -350,7 +369,7 @@
|
|
|
console.log(res);
|
|
|
if (res.data.status == 1) {
|
|
|
this.$message.success("发布成功");
|
|
|
- location.href = res.data.data.url;
|
|
|
+ // location.href = res.data.data.url;
|
|
|
}
|
|
|
this.isloading = false;
|
|
|
}).catch(err => {
|
|
|
@@ -391,7 +410,7 @@
|
|
|
this.$message.error("请填写合理薪资范围");
|
|
|
return false;
|
|
|
}
|
|
|
- console.log("123123123",this.params.workType);
|
|
|
+ console.log("123123123", this.params.workType);
|
|
|
if (this.params.workType != 1 && !this.params.cityId) {
|
|
|
this.$message.error("请选择工作地点");
|
|
|
return false;
|