diff --git a/.env b/.env new file mode 100644 index 00000000..612664a4 --- /dev/null +++ b/.env @@ -0,0 +1,2 @@ +NODE_ENV=production +PUBLIC_PATH=https://cdn.jsdelivr.net/npm/halo-admin@1.2.0/dist/ \ No newline at end of file diff --git a/.env.development b/.env.development new file mode 100644 index 00000000..6a9d8879 --- /dev/null +++ b/.env.development @@ -0,0 +1,2 @@ +NODE_ENV=development +PUBLIC_PATH=/ \ No newline at end of file diff --git a/src/api/post.js b/src/api/post.js index 338e6f01..9e3f02fb 100644 --- a/src/api/post.js +++ b/src/api/post.js @@ -132,11 +132,11 @@ postApi.permalinkType = { }, DATE: { type: 'DATE', - text: '年月日型' + text: '年月型' }, DAY: { type: 'DAY', - text: '年月型' + text: '年月日型' }, ID: { type: 'ID', diff --git a/vue.config.js b/vue.config.js index e6729142..dd84ae54 100644 --- a/vue.config.js +++ b/vue.config.js @@ -15,19 +15,19 @@ const assetsCDN = { axios: 'axios', marked: 'marked' }, - css: [ - ], + css: [], js: [ - '//cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.min.js', - '//cdn.jsdelivr.net/npm/vue-router@3.1.3/dist/vue-router.min.js', - '//cdn.jsdelivr.net/npm/vuex@3.1.1/dist/vuex.min.js', - '//cdn.jsdelivr.net/npm/axios@0.19.0/dist/axios.min.js', - '//cdn.jsdelivr.net/npm/marked@0.8.0/marked.min.js' + 'https://cdn.jsdelivr.net/npm/vue@2.6.11/dist/vue.min.js', + 'https://cdn.jsdelivr.net/npm/vue-router@3.1.3/dist/vue-router.min.js', + 'https://cdn.jsdelivr.net/npm/vuex@3.1.1/dist/vuex.min.js', + 'https://cdn.jsdelivr.net/npm/axios@0.19.0/dist/axios.min.js', + 'https://cdn.jsdelivr.net/npm/marked@0.8.0/marked.min.js' ] } // vue.config.js module.exports = { + publicPath: process.env.PUBLIC_PATH, configureWebpack: { plugins: [ new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/)