mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-07 01:46:46 +08:00
Merge branch 'develop' into manage-release
This commit is contained in:
@@ -16,6 +16,10 @@ export function getCookie(name) {
|
||||
return document.cookie?.split(";").find(e => e.includes(name))?.replace(`${name}=`, '') || ''
|
||||
}
|
||||
|
||||
export function delCookie(name){
|
||||
setCookie(name, "", -1)
|
||||
}
|
||||
|
||||
export function useUserInfo(id) {
|
||||
const userInfo = ref({})
|
||||
watch(id, () => {
|
||||
|
||||
@@ -307,7 +307,7 @@
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { computed, reactive, toRefs, watch, onUnmounted } from "vue";
|
||||
import { computed, reactive, toRefs, watch, onUnmounted, ref } from "vue";
|
||||
import FileTypeImg from "@/components/FileTypeImg.vue";
|
||||
import { request, useRequest } from "@/api/request";
|
||||
import {
|
||||
@@ -343,8 +343,10 @@ const { activeName, enclosure, isAllowSign } = toRefs(state);
|
||||
const handleClick = (tab, event) => {
|
||||
console.log("附件", tab, event);
|
||||
};
|
||||
const fielPath = ref(import.meta.env.VITE_FILE_PATH);
|
||||
const download = (url) => {
|
||||
window.open(url);
|
||||
console.log(fielPath.value+url)
|
||||
window.open(fielPath.value+url);
|
||||
};
|
||||
const downloads = (url) => {
|
||||
ElMessage.warning("未到开始时间,请耐心等待!");
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
<botton
|
||||
class="btn"
|
||||
style="margin-right: 20px;width: 160px;height: 46px;"
|
||||
v-if="data.hasTask || data.planDto.applyFlag"
|
||||
v-if="data.planDto.applyFlag"
|
||||
@click="onLineSignUp(false)"
|
||||
:style="{ background: isAllowSign?data.isSignUp || data.isRefused ? '#999' : 'rgb(57, 146, 249)':'#999'}">
|
||||
{{
|
||||
|
||||
Reference in New Issue
Block a user