dev
Wayne 2 years ago
parent 136237a661
commit 05df92b65e

@ -14,6 +14,7 @@ const editorConfig = ref({
// // Headers sent along with the XMLHttpRequest to the upload server. // // Headers sent along with the XMLHttpRequest to the upload server.
headers: { headers: {
'X-CSRF-TOKEN': 'CSFR-Token', 'X-CSRF-TOKEN': 'CSFR-Token',
'Authorization' : `${sessionStorage.getItem('token')}`
} }
}, },
image: { image: {
@ -100,6 +101,6 @@ const submitForm = async () => {
} }
:deep(.ck-editor__editable_inline) { :deep(.ck-editor__editable_inline) {
height: 400px; height: calc(100vh - 315px);
} }
</style> </style>

@ -14,6 +14,7 @@ const editorConfig = ref({
// // Headers sent along with the XMLHttpRequest to the upload server. // // Headers sent along with the XMLHttpRequest to the upload server.
headers: { headers: {
'X-CSRF-TOKEN': 'CSFR-Token', 'X-CSRF-TOKEN': 'CSFR-Token',
'Authorization' : `${sessionStorage.getItem('token')}`
} }
}, },
image: { image: {
@ -99,6 +100,6 @@ const submitForm = async () => {
} }
:deep(.ck-editor__editable_inline) { :deep(.ck-editor__editable_inline) {
height: 400px; height: calc(100vh - 315px);
} }
</style> </style>

@ -10,6 +10,7 @@ const editorConfig = ref({
// // Headers sent along with the XMLHttpRequest to the upload server. // // Headers sent along with the XMLHttpRequest to the upload server.
headers: { headers: {
'X-CSRF-TOKEN': 'CSFR-Token', 'X-CSRF-TOKEN': 'CSFR-Token',
'Authorization' : `${sessionStorage.getItem('token')}`
} }
}, },
image: { image: {

@ -13,6 +13,7 @@ const editorConfig = ref({
// // Headers sent along with the XMLHttpRequest to the upload server. // // Headers sent along with the XMLHttpRequest to the upload server.
headers: { headers: {
'X-CSRF-TOKEN': 'CSFR-Token', 'X-CSRF-TOKEN': 'CSFR-Token',
'Authorization' : `${sessionStorage.getItem('token')}`
} }
}, },
image: { image: {

@ -96,7 +96,7 @@ const handleNextClick = (val) => {
<div v-loading="loading"> <div v-loading="loading">
<el-table :data="tableData" style="width: 100%"> <el-table :data="tableData" style="width: 100%">
<el-table-column prop="id" label="#" width="50" /> <el-table-column prop="id" label="#" width="50" />
<el-table-column prop="agent_user_name" label="操作者" width="180" /> <el-table-column prop="admin_name" label="操作者" width="180" />
<el-table-column prop="time" label="操作日期" width="180" /> <el-table-column prop="time" label="操作日期" width="180" />
<el-table-column prop="ip" label="IP地址" width="180" /> <el-table-column prop="ip" label="IP地址" width="180" />
<el-table-column prop="content" label="操作紀錄" /> <el-table-column prop="content" label="操作紀錄" />

@ -15,6 +15,7 @@ const editorConfig = ref({
// // Headers sent along with the XMLHttpRequest to the upload server. // // Headers sent along with the XMLHttpRequest to the upload server.
headers: { headers: {
'X-CSRF-TOKEN': 'CSFR-Token', 'X-CSRF-TOKEN': 'CSFR-Token',
'Authorization' : `${sessionStorage.getItem('token')}`
} }
}, },
image: { image: {

@ -101,7 +101,7 @@ class ArticleController extends BaseController
->where('cat_id',$params['id']) ->where('cat_id',$params['id'])
->where('lang',$params['lang']) ->where('lang',$params['lang'])
->update($data); ->update($data);
AdminLog($this->uid, '修改內容 [' . $params['id'] .']'); AdminLog($this->uid, '修改內容 [' . $params['id'] .']');
return $this->Success('操作成功'); return $this->Success('操作成功');

@ -14,6 +14,7 @@ function getUrl(){
} }
function AdminLog($admin_id, $content){ function AdminLog($admin_id, $content){
if(!$admin_id){ if(!$admin_id){
$user_name = ''; $user_name = '';
}else{ }else{

@ -13,7 +13,7 @@
*/ */
return [ return [
// 'adminapi' => [ 'adminapi' => [
// app\adminapi\middleware\AdminJwtCheck::class, app\adminapi\middleware\AdminJwtCheck::class,
// ], ],
]; ];
Loading…
Cancel
Save