-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate from Vuex to Pinia (doocs#236)
- Loading branch information
Showing
10 changed files
with
284 additions
and
233 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,30 @@ | ||
import Vue from 'vue' | ||
import App from './App' | ||
import store from './store' | ||
import ElementUI from 'element-ui' | ||
import { createPinia, PiniaVuePlugin } from 'pinia' | ||
|
||
import 'element-ui/lib/theme-chalk/index.css' | ||
import './plugins/element' | ||
|
||
import 'codemirror/lib/codemirror.css' | ||
import 'codemirror/theme/xq-light.css' | ||
|
||
import 'codemirror/mode/css/css' | ||
import 'codemirror/mode/markdown/markdown' | ||
import 'codemirror/addon/edit/closebrackets' | ||
import 'codemirror/addon/edit/matchbrackets' | ||
import 'codemirror/addon/selection/active-line' | ||
import 'codemirror/addon/hint/show-hint.js' | ||
import 'codemirror/addon/hint/css-hint.js' | ||
import 'codemirror/addon/hint/show-hint' | ||
import 'codemirror/addon/hint/css-hint' | ||
|
||
import './plugins/element' | ||
import App from './App' | ||
|
||
Vue.use(ElementUI) | ||
Vue.use(ElementUI).use(PiniaVuePlugin) | ||
|
||
Vue.config.productionTip = false | ||
|
||
App.mpType = `app` | ||
|
||
const app = new Vue({ | ||
store, | ||
new Vue({ | ||
...App, | ||
}) | ||
app.$mount(`#app`) | ||
pinia: createPinia(), | ||
}).$mount(`#app`) |
Oops, something went wrong.