mirror of https://github.com/halo-dev/halo
release: 1.4.0-beta.2
parent
b422242552
commit
899bec20c6
|
@ -1,2 +1,2 @@
|
||||||
NODE_ENV=production
|
NODE_ENV=production
|
||||||
PUBLIC_PATH=https://cdn.jsdelivr.net/npm/halo-admin@1.4.0-beta.1/dist/
|
PUBLIC_PATH=https://cdn.jsdelivr.net/npm/halo-admin@1.4.0-beta.2/dist/
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "halo-admin",
|
"name": "halo-admin",
|
||||||
"version": "1.4.0-beta.1",
|
"version": "1.4.0-beta.2",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "halo-admin",
|
"name": "halo-admin",
|
||||||
"version": "1.4.0-beta.1",
|
"version": "1.4.0-beta.2",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"serve": "vue-cli-service serve",
|
"serve": "vue-cli-service serve",
|
||||||
"build": "vue-cli-service build",
|
"build": "vue-cli-service build",
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<meta name="renderer" content="webkit">
|
<meta name="renderer" content="webkit">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
|
||||||
<meta name="robots" content="noindex,nofllow" />
|
<meta name="robots" content="noindex,nofllow" />
|
||||||
<meta name="generator" content="Halo 1.4.0-beta.1" />
|
<meta name="generator" content="Halo 1.4.0-beta.2" />
|
||||||
<link rel="icon" href="<%= BASE_URL %>logo.png" />
|
<link rel="icon" href="<%= BASE_URL %>logo.png" />
|
||||||
<title>Halo Dashboard</title>
|
<title>Halo Dashboard</title>
|
||||||
<style>
|
<style>
|
||||||
|
|
|
@ -98,6 +98,7 @@
|
||||||
<script>
|
<script>
|
||||||
import commentApi from '@/api/comment'
|
import commentApi from '@/api/comment'
|
||||||
import marked from 'marked'
|
import marked from 'marked'
|
||||||
|
import { decodeHTML } from '@/utils/util'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'HeaderComment',
|
name: 'HeaderComment',
|
||||||
|
@ -114,13 +115,13 @@ export default {
|
||||||
computed: {
|
computed: {
|
||||||
converttedPostComments() {
|
converttedPostComments() {
|
||||||
return this.postComments.map(comment => {
|
return this.postComments.map(comment => {
|
||||||
comment.content = marked(comment.content)
|
comment.content = marked(decodeHTML(comment.content))
|
||||||
return comment
|
return comment
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
converttedSheetComments() {
|
converttedSheetComments() {
|
||||||
return this.sheetComments.map(comment => {
|
return this.sheetComments.map(comment => {
|
||||||
comment.content = marked(comment.content)
|
comment.content = marked(decodeHTML(comment.content))
|
||||||
return comment
|
return comment
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue