feat:修改版本号

This commit is contained in:
lixg
2022-12-21 08:55:19 +08:00
4 changed files with 8 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ export default defineComponent({
const store = useStore();
const isLogin = ref(false);
// console.log("router", router.getRoutes(), route);
console.log("版本0.9.20------------");
console.log("版本1.0------------");
const routes = computed(() => {
return router.getRoutes().filter((e) => e.meta?.isLink);
});

View File

@@ -236,7 +236,7 @@ const setCookie = (name, value, perpetual) => {
console.log('存储token到cookie')
let exdate = new Date()
exdate.setDate(perpetual * 24 * 60 * 60 * 1000) //exdate.setDate(exdate.getDate() + 365)
document.cookie = name + '=' + value + ';expires=' + exdate.toGMTString()
document.cookie = `${name}=${value};expires=${exdate.toGMTString()};path=/`
//永久有效
//document.cookie = name + '=' + value + ';expires=' + 'Fri, 31 Dec 9999 23:59:59 GMT'
}

View File

@@ -674,10 +674,13 @@ watch(visiable, () => {
align-items: center;
margin-right: 40px;
flex-wrap: wrap;
width: 100%;
.onleft {
display: flex;
text-align: center;
.already {
color: rgba(51, 51, 51, 1);
font-size: 16px;
@@ -686,11 +689,13 @@ watch(visiable, () => {
white-space: nowrap;
// margin-bottom: 20px;
}
.count {
color: #4ea6ff;
font-size: 16px;
margin: 0 6px;
}
.peo {
color: rgba(51, 51, 51, 1);
font-size: 16px;

View File

@@ -461,7 +461,6 @@ export default {
}
const createProject = async () => {
state.loading = true
console.log("保存", state.projectInfo);
if (!validate(state.projectInfo, errorMsgs)) {
return;
@@ -485,6 +484,7 @@ export default {
}
state.projectInfo.type = 3;
state.projectInfo.courseSyncFlag = state.courseSyncFlag ? 1 : 0;
state.loading = true
api.createProject(state.projectInfo).then((res) => {
state.loading = false
state.projectInfo.projectId ||