no message

This commit is contained in:
小陌 2023-09-04 16:47:12 +08:00
parent 0cc37426dd
commit a294094642
2 changed files with 8 additions and 5 deletions

View File

@ -1,14 +1,14 @@
import http from "@/utils/request" import http from "@/utils/request"
export default { export default {
upload: { upload: {
url: '/upload', url: '/upload/admin/upload',
post: async function(data, config = {}) { post: async function(data, config = {}) {
return await http.post(this.url, data, config); return await http.post(this.url, data, config);
} }
}, },
uploadFile: { uploadFile: {
post: async function(data, config = {}) { post: async function(data, config = {}) {
return await http.post('/upload?type=file', data, config); return await http.post('/upload/admin/upload?type=file', data, config);
} }
}, },
} }

View File

@ -68,10 +68,10 @@
data() { data() {
return { return {
init: { init: {
language_url: (process.env.PUBLIC_PATH === 'production' ? process.env.PUBLIC_PATH: '') + 'tinymce/langs/zh_CN.js', language_url: process.env.BASE_URL + 'tinymce/langs/zh_CN.js',
language: 'zh_CN', language: 'zh_CN',
skin_url: (process.env.PUBLIC_PATH === 'production' ? process.env.PUBLIC_PATH: '') + 'tinymce/skins/ui/oxide', skin_url: process.env.BASE_URL + 'tinymce/skins/ui/oxide',
content_css: (process.env.PUBLIC_PATH === 'production' ? process.env.PUBLIC_PATH: '') + "tinymce/skins/content/default/content.css", content_css: process.env.BASE_URL + "tinymce/skins/content/default/content.css",
menubar: false, menubar: false,
statusbar: true, statusbar: true,
plugins: this.plugins, plugins: this.plugins,
@ -133,6 +133,9 @@
} }
}, },
mounted() { mounted() {
console.log(process.env)
tinymce.init({}) tinymce.init({})
}, },
methods: { methods: {