Skip to content

Commit

Permalink
v3.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
star7th committed Dec 7, 2024
1 parent 4de5899 commit 8c83776
Show file tree
Hide file tree
Showing 14 changed files with 43 additions and 40 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"Api"
],
"homepage": "https://github.com/star7th/showdoc",
"version": "v3.3.0",
"version": "v3.3.1",
"license": "Apache-2.0",
"authors": [
{
Expand Down
2 changes: 1 addition & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
'../server/index.php?s=',
// "lang" :'en'
lang: 'zh-cn'
}</script><link href="./static/css/app.c97d2f978a5aead08b152cd194a5ebf3.css" rel="stylesheet"></head><body class="grey-bg"><div id="app"></div><script type="text/javascript" src="./static/js/manifest.3ad1d5771e9b13dbdad2.js"></script><script type="text/javascript" src="./static/js/vendor.6958fbe8e7ac7908b110.js"></script><script type="text/javascript" src="./static/js/app.c46b0539d010154bdc26.js"></script></body></html>
}</script><link href="./static/css/app.93c3930f38a83da31023043fc45ea15f.css" rel="stylesheet"></head><body class="grey-bg"><div id="app"></div><script type="text/javascript" src="./static/js/manifest.3ad1d5771e9b13dbdad2.js"></script><script type="text/javascript" src="./static/js/vendor.6958fbe8e7ac7908b110.js"></script><script type="text/javascript" src="./static/js/app.650d2e7c0435d06afada.js"></script></body></html>

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions web/static/js/app.650d2e7c0435d06afada.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion web/static/js/app.c46b0539d010154bdc26.js

This file was deleted.

4 changes: 2 additions & 2 deletions web_src/src/components/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ export default {
this.homePageSetting()
this.link = '/user/login'
this.link_text = this.$t('index_login_or_register')
getUserInfo(response => {
if (response.data.error_code === 0) {
getUserInfo(data => {
if (data.error_code === 0) {
this.link = '/item/index'
this.link_text = this.$t('my_item')
}
Expand Down
12 changes: 6 additions & 6 deletions web_src/src/components/item/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -488,14 +488,14 @@ export default {
// 检测邮箱绑定情况
checkEmail() {
var that = this
getUserInfo(function(response) {
if (response.data.error_code === 0) {
that.username = response.data.data.username
if (response.data.data.groupid == 1) {
getUserInfo(function(data) {
if (data.error_code === 0) {
that.username = data.data.username
if (data.data.groupid == 1) {
that.isAdmin = true
}
if (response.data.data.email_verify < 1) {
if (response.data.data.email.length > 0) {
if (data.data.email_verify < 1) {
if (data.data.email.length > 0) {
that.$message({
showClose: true,
duration: 10000,
Expand Down
8 changes: 4 additions & 4 deletions web_src/src/components/item/home/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -272,10 +272,10 @@ export default {
},
checkAdmin() {
var that = this
getUserInfo(function(response) {
if (response.data.error_code === 0) {
that.username = response.data.data.username
if (response.data.data.groupid == 1) {
getUserInfo(function(data) {
if (data.error_code === 0) {
that.username = data.data.username
if (data.data.groupid == 1) {
that.isAdmin = true
}
}
Expand Down
6 changes: 3 additions & 3 deletions web_src/src/components/item/show/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ export default {
}
} else {
// 网络请求获取用户信息
getUserInfo(response => {
if (response.data.error_code === 0) {
let user_info = response.data.data
getUserInfo(data => {
if (data.error_code === 0) {
let user_info = data.data
this.$store.dispatch('changeUserInfo', user_info).then(() => {
this.renderWatermark()
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@
this.showHistoryVersiong = false
}
"
:cancel="
data => {
this.showHistoryVersiong = false
}
"
></HistoryVersion>

<!-- 回收站的弹窗 -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
class="custom-tree-node node-folder"
:id="'node-' + node.data.id"
>
<i
<i
v-if="openeds.includes(node.data.id) && node.data.children.length"
class="mr-2 far fa-folder-open"
></i>
Expand Down Expand Up @@ -105,6 +105,11 @@
this.showHistoryVersiong = false
}
"
:cancel="
data => {
this.showHistoryVersiong = false
}
"
></HistoryVersion>

<CopyCatalog
Expand Down Expand Up @@ -335,7 +340,7 @@ export default {
handleDragEnd() {
const treeData = this.menu
// 将拖动的顺序和层级信息保存到后台
// 如果是搜索结果,则不保存目录层级关系到后台
if (this.keyword) {
return false
Expand Down
6 changes: 3 additions & 3 deletions web_src/src/components/item/show/show_table_item/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ export default {
}
this.request('/api/page/info', {
page_id: page_id
}).then(response => {
if (response.data.page_content) {
}).then(data => {
if (data.data.page_content) {
let objData
try {
objData = JSON.parse(unescapeHTML(response.data.page_content))
objData = JSON.parse(unescapeHTML(data.data.page_content))
} catch (error) {
objData = {}
}
Expand Down
12 changes: 6 additions & 6 deletions web_src/src/components/user/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,10 @@ export default {
this.request('/api/ScriptCron/run', {}, 'get',false)
},
getOauth() {
this.request('/api/user/oauthInfo', {}, 'get',false).then(response => {
if (response.data.error_code === 0) {
if (response.data.data.oauth2_open > 0) {
this.oauth2_entrance_tips = response.data.data.oauth2_entrance_tips
this.request('/api/user/oauthInfo', {}, 'get',false).then(data => {
if (data.error_code === 0) {
if (data.data.oauth2_open > 0) {
this.oauth2_entrance_tips = data.data.oauth2_entrance_tips
}
}
})
Expand All @@ -204,8 +204,8 @@ export default {
const element = eles[index]
element.remove()
}
getUserInfo(function(response) {
if (response.data.error_code === 0) {
getUserInfo(function(data) {
if (data.error_code === 0) {
let redirect = decodeURIComponent(
that.$route.query.redirect || '/item/index'
)
Expand Down
11 changes: 2 additions & 9 deletions web_src/src/models/user.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
import request from '@/request.js'

const getUserInfo = (callback = () => {}) => {
request(
'/api/user/info',
{
redirect_login: false
},
'post',
false
).then(data => {
return request('/api/user/info', {}, 'post', false).then(data => {
if (callback) {
callback({ data })
callback(data)
}
})
}
Expand Down

0 comments on commit 8c83776

Please sign in to comment.