更新组件声明,移除SearchByCondition组件支持;调整FileMessage.vue中的文件点击事件处理逻辑,优化SysGroupAdminMessage.vue中的用户信息展示逻辑;修复auth.js中的token获取逻辑。
This commit is contained in:
parent
f1b802cde8
commit
b65f38f02e
1
components.d.ts
vendored
1
components.d.ts
vendored
@ -67,7 +67,6 @@ declare module 'vue' {
|
||||
RevokeMessage: typeof import('./src/components/talk/message/RevokeMessage.vue')['default']
|
||||
RouterLink: typeof import('vue-router')['RouterLink']
|
||||
RouterView: typeof import('vue-router')['RouterView']
|
||||
SearchByCondition: typeof import('./src/components/search/searchByCondition.vue')['default']
|
||||
SearchItem: typeof import('./src/components/search/searchItem.vue')['default']
|
||||
SearchList: typeof import('./src/components/search/searchList.vue')['default']
|
||||
SysGroupAdminMessage: typeof import('./src/components/talk/message/system/SysGroupAdminMessage.vue')['default']
|
||||
|
@ -577,7 +577,6 @@ function hideMentionDom() {
|
||||
* @param data 消息数据
|
||||
*/
|
||||
function onSubscribeEdit(data: any) {
|
||||
console.log('data', data)
|
||||
const quill = getQuill()
|
||||
if (!quill) return
|
||||
|
||||
|
@ -83,10 +83,21 @@ const circumference = computed(() => 2 * Math.PI * radius)
|
||||
const strokeDashoffset = computed(() =>
|
||||
circumference.value * (1 - (props.extra.percentage || 0) / 100)
|
||||
)
|
||||
|
||||
// 处理文件点击事件
|
||||
const handleClick = () => {
|
||||
console.log('props.extra', props.extra);
|
||||
|
||||
window.open(
|
||||
`http://localhost:5500/?url=${props.extra.path}`,
|
||||
'_blank',
|
||||
'width=800,height=600,left=200,top=200,toolbar=no,menubar=no,scrollbars=yes,resizable=yes,location=no,status=no'
|
||||
);
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="file-message">
|
||||
<div class="file-message" @click="handleClick">
|
||||
<!-- 文件头部信息 -->
|
||||
<div class="file-header">
|
||||
<!-- 文件名 -->
|
||||
|
@ -15,8 +15,7 @@ const { showUserInfoModal } = useInject()
|
||||
<div class="sys-text">
|
||||
|
||||
<template v-for="(user, index) in extra.members" :key="index">
|
||||
{{ data }}
|
||||
<a @click="showUserInfoModal(user.user_id)">{{ user.nickname }}</a>
|
||||
<a @click="showUserInfoModal(user.erp_user_id,user.user_id)">{{ user.nickname }}</a>
|
||||
<em v-show="index < extra.members.length - 1">、</em>
|
||||
</template>
|
||||
|
||||
|
@ -18,7 +18,7 @@ export function isLoggedIn() {
|
||||
*/
|
||||
export function getAccessToken() {
|
||||
// return storage.get(AccessToken) || ''
|
||||
return JSON.parse(localStorage.getItem('token'))||'46d71a72d8d845ad7ed23eba9bdde260e635407190c2ce1bf7fd22088e41682ea07773ec65cae8946d2003f264d55961f96e0fc5da10eb96d3a348c1664e9644ce2108c311309f398ae8ea1b8200bfd490e5cb6e8c52c9e5d493cbabb163368f8351420451a631dbfa749829ee4cda49b77b5ed2d3dced5d0f2b7dd9ee76ba5465c84a17c23af040cd92b6b2a4ea48befbb5c729dcdad0a9c9668befe84074cc24f78899c1d947f8e7f94c7eda5325b8ed698df729e76febb98549ef3482ae942fb4f4a1c92d21836fa784728f0c5483aab2760a991b6b36e6b10c84f840a6433a6ecc31dee36e8f1c6158818bc89d22b9b32c043123b3db4f35a7a79e1bbe97875bfa18428a4f5ed561887bfbfcab3bd61f2f9348af8bdb89da8c35a7a681fe828af1502b58ebc4ffb99f28fe91d5ba4b0245d1eb24a5ccda9be0cd9bef4d01'
|
||||
return JSON.parse(localStorage.getItem('token'))||'6e0b0a00c35d0e1613d8f9ce2303067e46a0c2d9941c959848ccf7c91e7eb0fe14690f485ae6b5e932196267c2af8a6089bda35a715c44ad565de15114eb2c82fddcba958dd35b80cd0980f7d6fa4dde04e3c5f1407e39ac1073432c4e9dc0031afbe520e8a6528eeba7e79cf2c97f4c6e07e4a466460ee50fc28b2f05ca5215db9ea522a4d76911dbdd5d863c107f1cb073da0c94091ce81c59c9bd2faba1de9552a38a8c9ac69bb4a8d562b41b127a1e92468d4b8a5749adf7c899a65c748940eda0d6c8834cdd8995b527ab6f56cf9a6ede9de78ce7938190030708b576238d62f018abb0d363ee4cb4c1a8235487c20938760bece6caaf5f3573f888d15a0f9e79c4b09bd5214c704c135be67de9b475e24addc92d662768128eef05ddc67d68d8c0f16b5293888508c2f7f87bd0766fa7609726c18f814f04551f6f54d7'
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user